blob: 27ae781a776f8da20b15578725992357f353bb19 (
plain)
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
|
DOC_SRC=$(wildcard git*.txt)
DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
DOC_MAN=$(patsubst %.txt,%.1,$(wildcard git-*.txt)) git.7
all: $(DOC_HTML) $(DOC_MAN)
html: $(DOC_HTML)
man: $(DOC_MAN)
# 'include' dependencies
git-diff-%.txt: diff-format.txt
touch $@
clean:
rm -f *.xml *.html *.1 *.7
%.html : %.txt
asciidoc -b css-embedded -d manpage $<
%.1 %.7 : %.xml
xmlto man $<
# FIXME: this next line works around an output filename bug in asciidoc 6.0.3
[ "$@" = "git.7" ] || mv git.1 $@
%.xml : %.txt
asciidoc -b docbook -d manpage $<
|