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