This repository has been archived by the owner on Feb 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
63 lines (48 loc) · 1.45 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
datafiles := asciidoc-8.6.8
datafiles += deck.js
datafiles += deck.ext.js
datafiles += deck.split.js
datadir := cdk/data
data := $(addprefix $(datadir)/,$(datafiles))
init:
pip install -r requirements.txt --use-mirrors
test:
py.test
build: getdata
python setup.py sdist
install:
cd dist/; tar xzf cdk-1.0.8.tar.gz
cd dist/cdk-1.0.8; sudo python setup.py install
getdata: $(datadir) $(data)
$(datadir):
mkdir -p $@
$(datadir)/asciidoc-8.6.8:
wget -O asciidoc.tar.gz https://sourceforge.net/projects/asciidoc/files/asciidoc/8.6.8/asciidoc-8.6.8.tar.gz/download
tar -xzf asciidoc.tar.gz
mv asciidoc-8.6.8 $@
rm asciidoc.tar.gz
$(datadir)/deck.js:
wget -O deckjs.zip https://github.com/imakewebthings/deck.js/archive/4601d4da2bf8c803c9ca55c9d616b568314d3cfa.zip
unzip deckjs.zip
mv deck.js-4601d4da2bf8c803c9ca55c9d616b568314d3cfa $@
rm deckjs.zip
$(datadir)/deck.ext.js:
wget -O deck.ext.js.zip https://github.com/barraq/deck.ext.js/archive/master.zip
unzip deck.ext.js.zip
mv deck.ext.js-master $@
rm deck.ext.js.zip
$(datadir)/deck.split.js:
wget -O deck.split.js.zip https://github.com/houqp/deck.split.js/archive/master.zip
unzip deck.split.js.zip
mv deck.split.js-master $@
rm deck.split.js.zip
clean:
python setup.py clean
find . -name '*~' -delete
find . -name '*.pyc' -delete
rm -rf dist
rm -rf cdk.egg-info
really-clean: clean cleandata
cleandata:
rm -rf $(datadir)
.PHONY: init build test install getdata clean cleandata really-clean