2005-05-10 23:32:39 +02:00
|
|
|
DOC_SRC=$(wildcard git*.txt)
|
|
|
|
DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
|
2005-05-19 18:24:54 +02:00
|
|
|
DOC_MAN=$(patsubst %.txt,%.1,$(wildcard git-*.txt)) git.7
|
2005-05-10 23:32:39 +02:00
|
|
|
|
|
|
|
all: $(DOC_HTML) $(DOC_MAN)
|
|
|
|
|
|
|
|
html: $(DOC_HTML)
|
|
|
|
|
|
|
|
man: $(DOC_MAN)
|
|
|
|
|
2005-05-12 23:31:05 +02:00
|
|
|
# 'include' dependencies
|
|
|
|
git-diff-%.txt: diff-format.txt
|
|
|
|
touch $@
|
2005-05-10 23:32:39 +02:00
|
|
|
|
|
|
|
clean:
|
2005-05-19 18:24:54 +02:00
|
|
|
rm -f *.xml *.html *.1 *.7
|
2005-05-10 23:32:39 +02:00
|
|
|
|
|
|
|
%.html : %.txt
|
|
|
|
asciidoc -b css-embedded -d manpage $<
|
|
|
|
|
2005-05-19 18:24:54 +02:00
|
|
|
%.1 %.7 : %.xml
|
2005-05-10 23:32:39 +02:00
|
|
|
xmlto man $<
|
2005-05-19 18:24:54 +02:00
|
|
|
# FIXME: this next line works around an output filename bug in asciidoc 6.0.3
|
|
|
|
[ "$@" = "git.7" ] || mv git.1 $@
|
2005-05-10 23:32:39 +02:00
|
|
|
|
|
|
|
%.xml : %.txt
|
|
|
|
asciidoc -b docbook -d manpage $<
|