1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-30 05:47:53 +01:00
git/Documentation/Makefile
David Greaves f77b100ada The Makefile is now aware of Documentation/ include directives
It makes the includers (diff commands documentation) depend on the includee
(diff format description).

Signed-off-by: David Greaves <david@dgreaves.com>
Signed-off-by: Petr Baudis <pasky@ucw.cz>
2005-05-14 00:01:41 +02:00

25 lines
413 B
Makefile

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)
# 'include' dependencies
git-diff-%.txt: diff-format.txt
touch $@
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 $<