-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
86 lines (70 loc) · 2.49 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package:= deckjs
version:= $(shell head -n 1 deckjs.conf | sed s/\#\ version\ //g)
tarname:= $(package)
distdir:= $(tarname)-$(version)
all:
@echo -e "asciidoc-deckjs $(version)\n"
@echo "* issue make test to test the backend."
@echo "* issue make install-dep to install deck.js dependence."
@echo "* issue make pac-deckjs to build the latest deck.js.extended.zip."
test:
asciidoc -f deckjs.conf example-template.asciidoc
asciidoc -f deckjs.conf tutorial-slide.asciidoc
install-dep:
wget https://github.com/houqp/asciidoc-deckjs/releases/download/v1.6.3/deck.js.extended.zip
unzip deck.js.extended.zip
rm deck.js.extended.zip
built-deckjs:ins-deckextjs ins-deckjsblank ins-deckjs ins-decksplitjs
pac-deckjs:built-deckjs
zip -r deck.js.extended.zip deck.js
ins-deckextjs:ins-deckjs
wget https://github.com/barraq/deck.ext.js/zipball/master -O deck.ext.js.zip 2> /dev/null
unzip deck.ext.js.zip
mv barraq-deck.ext.js-* deckextjs
mv deckextjs/extensions/toc deck.js/extensions/
mv deckextjs/themes/style/* deck.js/themes/style/
mv deckextjs/themes/transition/* deck.js/themes/transition/
rm -rf deckextjs
ins-deckjsblank:ins-deckjs
wget https://github.com/mikek70/deck.js-blank/zipball/master -O deck.js-blank.zip 2> /dev/null
unzip deck.js-blank.zip
mv mikek70-deck.js-blank-* deck.js/extensions/deck.js-blank
ins-decksplitjs:ins-deckjs
wget https://github.com/houqp/deck.split.js/zipball/master -O deck.split.js.zip 2> /dev/null
unzip deck.split.js.zip
mv houqp-deck.split.js-* deck.js/extensions/split
ins-deckjs:
rm -rf ./deck.js
wget https://github.com/imakewebthings/deck.js/archive/1.1.0.zip -O deck.js.zip 2> /dev/null
unzip deck.js.zip
rm deck.js.zip
mv deck.js-1* deck.js
dist:$(distdir).zip
$(distdir).zip:$(distdir)
asciidoc --backend build $@ $(distdir)
rm -rf $(distdir)
$(distdir):built-deckjs
mkdir -p $(distdir)/example
cp -r ad-stylesheet $(distdir)
cp GPL-license.txt $(distdir)
cp deckjs.conf $(distdir)
cp example-template.asciidoc $(distdir)/example
cp tutorial-slide.asciidoc $(distdir)/example
cp README.md $(distdir)
cp -r deck.js $(distdir)
check:
git checkout gh-pages README.md
git checkout gh-pages tutorial-slide.asciidoc
git checkout gh-pages example-template.asciidoc
clean:
rm -rf example-template.html
rm -rf tutorial-slide.html
rm -rf deck.js.zip deck.js
rm -rf deck.ext.js.zip deckextjs
rm -rf deck.js.extended.zip
rm -rf $(distdir)
rm -rf deckjs-*.zip
rm -rf deck.js-blank.zip
rm -rf deck.ext.js.zip
rm -rf deck.split.js.zip
.PHONY: all clean test dist