-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy pathMakefile
48 lines (35 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile for sparkup distribution
# TODO: this should use a separate build dir to copy SPARKUP_PY into.
# SPARKUP_PY should not reside in the Vim runtime dir (getting not updated via Git!)
SPARKUP_PY=sparkup.py
VERSION=`date '+%Y%m%d'`
README=README.md
.PHONY: all textmate vim textmate-dist vim-dist plugins plugins-pre generic all-dist
all: plugins
plugins-pre:
mkdir -p distribution
plugins: plugins-pre all-dist
textmate-dist: textmate
cd TextMate && zip -9r ../distribution/sparkup-textmate-${VERSION}.zip . && cd ..
vim-dist: vim
cd vim && zip -9r ../distribution/sparkup-vim-${VERSION}.zip . && cd ..
generic-dist: generic
cd generic && zip -9r ../distribution/sparkup-generic-${VERSION}.zip . && cd ..
all-dist:
zip -9r distribution/sparkup-${VERSION}.zip generic vim textmate README.md -x */sparkup-readme.txt
cp distribution/sparkup-${VERSION}.zip distribution/sparkup-latest.zip
generic:
cat ${SPARKUP_PY} > generic/sparkup
chmod +x generic/sparkup
#cp ${README} generic/sparkup-readme.txt
textmate:
#cp ${README} TextMate/sparkup-readme.txt
vim: vim/doc/sparkup.txt
# create pathogen friendly structure
vim-pathogen: vim ftplugin doc
ftplugin doc:
ln -s vim/$@
# Add asterisks to title, so it gets matched by `:helptags`
vim/doc/sparkup.txt: ${README}
mkdir -p $(@D)
sed '1s/.*/*\0*/' $< > $@