1 MAN1_TXT=$(wildcard git-*.txt) gitk.txt
4 DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT) $(MAN7_TXT))
6 ARTICLES = tutorial cvs-migration diffcore howto-index
7 # with their own formatting rules.
8 SP_ARTICLES = glossary howto/revert-branch-rebase
10 DOC_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
12 DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
13 DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
25 # Please note that there is a minor bug in asciidoc.
26 # The version after 6.0.3 _will_ include the patch found here:
27 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
29 # Until that version is released you may have to apply the patch
30 # yourself - yes, all 6 characters of it!
43 $(INSTALL) -m755 -d $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
44 $(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
45 $(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
47 # 'include' dependencies
48 git-diff-%.txt: diff-format.txt diff-options.txt
52 rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html
55 asciidoc -b xhtml11 -d manpage $<
61 asciidoc -b docbook -d manpage $<
63 git.html: git.txt ../README
65 glossary.html : glossary.txt sort_glossary.pl
67 perl sort_glossary.pl | \
68 asciidoc -b xhtml11 - > glossary.html
70 howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
72 sh ./howto-index.sh $(wildcard howto/*.txt) >$@+
75 $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
76 asciidoc -b xhtml11 $*.txt
78 WEBDOC_DEST = /pub/software/scm/git/docs
80 $(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
82 sed -e '1,/^$$/d' $? | asciidoc -b xhtml11 - >$@+
86 sh ./install-webdoc.sh $(WEBDOC_DEST)