1DOC_SRC=$(wildcard git*.txt)
2DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
3DOC_MAN=$(patsubst %.txt,%.1,$(wildcard git-*.txt)) git.7
4
5all: $(DOC_HTML) $(DOC_MAN)
6
7html: $(DOC_HTML)
8
9man: $(DOC_MAN)
10
11# 'include' dependencies
12git-diff-%.txt: diff-format.txt
13 touch $@
14
15clean:
16 rm -f *.xml *.html *.1 *.7
17
18%.html : %.txt
19 asciidoc -b css-embedded -d manpage $<
20
21%.1 %.7 : %.xml
22 xmlto man $<
23 # FIXME: this next line works around an output filename bug in asciidoc 6.0.3
24 [ "$@" = "git.7" ] || mv git.1 $@
25
26%.xml : %.txt
27 asciidoc -b docbook -d manpage $<