2005-05-22 19:44:15 +02:00
|
|
|
MAN1_TXT=$(wildcard git-*.txt)
|
|
|
|
MAN7_TXT=git.txt
|
2005-05-10 23:32:39 +02:00
|
|
|
|
2005-05-22 19:44:15 +02:00
|
|
|
DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT) $(MAN7_TXT))
|
|
|
|
|
|
|
|
DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
|
|
|
|
DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
|
|
|
|
|
|
|
|
#
|
|
|
|
# Please note that there is a minor bug in asciidoc.
|
|
|
|
# The version after 6.0.3 _will_ include the patch found here:
|
|
|
|
# http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
|
|
|
|
#
|
|
|
|
# Until that version is released you may have to apply the patch
|
|
|
|
# yourself - yes, all 6 characters of it!
|
|
|
|
#
|
|
|
|
|
|
|
|
all: html man
|
2005-05-10 23:32:39 +02:00
|
|
|
|
|
|
|
html: $(DOC_HTML)
|
|
|
|
|
2005-05-22 19:44:15 +02:00
|
|
|
|
|
|
|
man: man1 man7
|
|
|
|
man1: $(DOC_MAN1)
|
|
|
|
man7: $(DOC_MAN7)
|
2005-05-10 23:32:39 +02:00
|
|
|
|
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 $<
|
|
|
|
|
|
|
|
%.xml : %.txt
|
|
|
|
asciidoc -b docbook -d manpage $<
|