docs/src/Makefile

changeset 562
78a25071ed88
parent 436
daea53362170
child 694
60edf3d679fd
equal deleted inserted replaced
561:5e6df4f502d3 562:78a25071ed88
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 PANDOC=pandoc 29 PANDOC=pandoc
30 PFLAGS = -c davdoc.css -B header.html -A footer.html 30 PFLAGS = -c davdoc.css -B header.html -A footer.html
31 PDEPEND = header.html footer.html
31 PFLAGSMAN=-s -t man 32 PFLAGSMAN=-s -t man
32 33
33 SRC = getting-started.md 34 SRC = getting-started.md
34 SRC += commands.md 35 SRC += commands.md
35 SRC += list.md 36 SRC += list.md
57 SRC += introduction.md 58 SRC += introduction.md
58 SRC += sync-commands.md 59 SRC += sync-commands.md
59 SRC += pull.md 60 SRC += pull.md
60 SRC += push.md 61 SRC += push.md
61 SRC += archive.md 62 SRC += archive.md
63 SRC += list-conflicts.md
62 SRC += resolve-conflicts.md 64 SRC += resolve-conflicts.md
63 SRC += delete-conflicts.md 65 SRC += delete-conflicts.md
64 SRC += trash-info.md 66 SRC += trash-info.md
65 SRC += empty-trash.md 67 SRC += empty-trash.md
66 SRC += add-tag.md 68 SRC += add-tag.md
91 manual: build $(MAN) 93 manual: build $(MAN)
92 94
93 build: 95 build:
94 mkdir -p build 96 mkdir -p build
95 97
96 build/%.html: %.md 98 build/%.html: %.md $(PDEPEND)
97 $(PANDOC) $(PFLAGS) $< -o $@ 99 $(PANDOC) $(PFLAGS) $< -o $@
98 100
99 build/%.man: %.md 101 build/%.man: %.md
100 $(PANDOC) $(PFLAGSMAN) $< -o $@ 102 $(PANDOC) $(PFLAGSMAN) $< -o $@
101 103
102 build/davdoc.css: 104 build/davdoc.css: davdoc.css
103 cp davdoc.css build 105 cp davdoc.css build
104 106
105 build/index.html: 107 build/index.html: index.html
106 cp index.html build 108 cp index.html build
107 109
108 dist: doc manual 110 dist: doc manual
109 rm -Rf $(DISTHTML) $(DISTMAN) 111 rm -Rf $(DISTHTML) $(DISTMAN)
110 mkdir -p $(DISTHTML) $(DISTMAN) 112 mkdir -p $(DISTHTML) $(DISTMAN)

mercurial