1 MAN1_TXT=$(wildcard git-*.txt) gitk.txt
4 DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT) $(MAN7_TXT))
7 ARTICLES += cvs-migration
9 ARTICLES += howto-index
10 ARTICLES += repository-layout
13 # with their own formatting rules.
14 SP_ARTICLES = glossary howto/revert-branch-rebase
16 DOC_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
18 DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
19 DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
31 # Please note that there is a minor bug in asciidoc.
32 # The version after 6.0.3 _will_ include the patch found here:
33 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
35 # Until that version is released you may have to apply the patch
36 # yourself - yes, all 6 characters of it!
49 $(INSTALL) -d -m755 $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
50 $(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
51 $(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
55 # Determine "include::" file references in asciidoc files.
57 doc.dep : $(wildcard *.txt) build-docdep.perl
59 perl ./build-docdep.perl >$@+
68 rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html doc.dep
71 asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
77 asciidoc -b docbook -d manpage -f asciidoc.conf $<
79 git.html: git.txt ../README
81 glossary.html : glossary.txt sort_glossary.pl
83 perl sort_glossary.pl | \
84 asciidoc -b xhtml11 - > glossary.html
86 howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
88 sh ./howto-index.sh $(wildcard howto/*.txt) >$@+
91 $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
92 asciidoc -b xhtml11 $*.txt
94 WEBDOC_DEST = /pub/software/scm/git/docs
96 $(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
98 sed -e '1,/^$$/d' $? | asciidoc -b xhtml11 - >$@+
101 install-webdoc : html
102 sh ./install-webdoc.sh $(WEBDOC_DEST)