70 SRC += list-directories.md |
71 SRC += list-directories.md |
71 SRC += sync-check-config.md |
72 SRC += sync-check-config.md |
72 SRC += check-repositories.md |
73 SRC += check-repositories.md |
73 SRC += sync-configuration.md |
74 SRC += sync-configuration.md |
74 |
75 |
|
76 SRCMAN = dav.1.md |
|
77 SRCMAN += dav-sync.1.md |
75 |
78 |
76 HTML = $(SRC:%.md=build/%.html) |
79 HTML = $(SRC:%.md=build/%.html) |
|
80 MAN = $(SRCMAN:%.md=build/%.man) |
|
81 |
|
82 DISTHTML = ../html |
|
83 DISTMAN = ../man |
77 |
84 |
78 FILES = build/davdoc.css build/index.html |
85 FILES = build/davdoc.css build/index.html |
79 |
86 |
80 all: doc |
87 all: doc manual |
81 |
88 |
82 doc: build $(HTML) $(FILES) |
89 doc: build $(HTML) $(FILES) |
83 |
90 |
|
91 manual: build $(MAN) |
84 |
92 |
85 build: |
93 build: |
86 mkdir -p build |
94 mkdir -p build |
87 |
95 |
88 build/%.html: %.md |
96 build/%.html: %.md |
89 $(PANDOC) $(PFLAGS) $< -o $@ |
97 $(PANDOC) $(PFLAGS) $< -o $@ |
90 |
98 |
|
99 build/%.man: %.md |
|
100 $(PANDOC) $(PFLAGSMAN) $< -o $@ |
|
101 |
91 build/davdoc.css: |
102 build/davdoc.css: |
92 cp davdoc.css build |
103 cp davdoc.css build |
93 |
104 |
94 build/index.html: |
105 build/index.html: |
95 cp index.html build |
106 cp index.html build |
96 |
107 |
97 dist: doc |
108 dist: doc manual |
98 rm -Rf ../html; cp -R build ../html |
109 rm -Rf $(DISTHTML) $(DISTMAN) |
|
110 mkdir -p $(DISTHTML) $(DISTMAN) |
|
111 cp build/*.html $(DISTHTML)/ |
|
112 cp build/*.css $(DISTHTML)/ |
|
113 cp build/*.man $(DISTMAN)/ |
99 |
114 |
100 clean: |
115 clean: |
101 rm -Rf build |
116 rm -Rf build |
102 |
117 |