-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
64 lines (54 loc) · 1.39 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
MD = book.md \
toc.md \
EndPoint/ValidEndPoint.md \
LandingPage/HTML5.md \
LandingPage/DiscoveryDoc.md \
OpenSearch/DiscoveryDoc.md\
OpenSearch/HTMLSearch.md \
OpenSearch/ATOMSearch.md \
Discovery/GoogleDiscovery.md \
Discovery/GeoServices.md \
Discovery/Atompub.md \
Discovery/None.md \
UniformInterface/Verbs.md \
UniformInterface/Idempotence.md \
ContentNegotiation/Headers.md \
ContentNegotiation/Suffixes.md \
ContentNegotiation/MimeTypes.md \
Atom/Atom.md \
Atom/Extend.md \
Atom/GData2.0.md \
Caching/Caching.md \
Caching/GData2.0.md
all: book.html book.docx clear
regenerate: clean all
git commit -a -m '[dist] Regenerated handbook' && echo done
publish: clean all
git commit -am '[dist] Regenerated handbook'
git push origin master
./bin/deploy.sh
book.html:
@echo "\n... generating $@"
pandoc -s --strict -o book.html -c ./book.css $(MD)
book.docx:
@echo "\n... generating $@"
pandoc -o book.docx -c ./book.css $(MD)
book.pdf:
@echo "\n... generating $@"
pandoc -s --strict -o book.pdf $(MD)
clean:
rm toc.html
rm -f API/*.html
rm -f LandingPage/*.html
rm -f Atom/*.html
rm -f Caching/*.html
rm -f Compression/*.html
rm -f ContentNegotiation/*.html
rm -f Discovery/*.html
rm -f EndPoint/*.html
rm -f OpenSearch/*.html
rm -f UniformInterface/*.html
rm -f book.html
rm -rf public
clear:
.PHONY: view clean regenerate