1 MAN1_TXT=$(wildcard git-*.txt)
4 DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT) $(MAN7_TXT))
5 DOC_HTML += glossary.html
6 DOC_HTML += tutorial.html
7 DOC_HTML += howto-index.html
8 DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
9 DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
21 # Please note that there is a minor bug in asciidoc.
22 # The version after 6.0.3 _will_ include the patch found here:
23 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
25 # Until that version is released you may have to apply the patch
26 # yourself - yes, all 6 characters of it!
39 $(INSTALL) -m755 -d $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
40 $(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
41 $(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
43 # 'include' dependencies
44 git-diff-%.txt: diff-format.txt diff-options.txt
48 rm -f *.xml *.html *.1 *.7 howto-index.txt
51 asciidoc -b xhtml11 -d manpage $<
57 asciidoc -b docbook -d manpage $<
59 glossary.html : glossary.txt sort_glossary.pl
61 perl sort_glossary.pl | \
62 asciidoc -b xhtml11 - > glossary.html
64 tutorial.html : tutorial.txt
65 asciidoc -b xhtml11 tutorial.txt
67 howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
69 sh ./howto-index.sh $(wildcard howto/*.txt) >$@+
72 howto-index.html: howto-index.txt
73 asciidoc -b xhtml11 howto-index.txt
75 WEBDOC_DEST = /pub/software/scm/git/docs
78 sh ./install-webdoc.sh $(WEBDOC_DEST)