2005-05-10 23:32:39 +02:00
|
|
|
DOC_SRC=$(wildcard git*.txt)
|
|
|
|
DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
|
|
|
|
DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
|
|
|
|
|
|
|
|
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:
|
|
|
|
rm -f *.xml *.html *.1
|
|
|
|
|
|
|
|
%.html : %.txt
|
|
|
|
asciidoc -b css-embedded -d manpage $<
|
|
|
|
|
|
|
|
%.1 : %.xml
|
|
|
|
xmlto man $<
|
|
|
|
|
|
|
|
%.xml : %.txt
|
|
|
|
asciidoc -b docbook -d manpage $<
|