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_MAN1
=$(patsubst %.txt
,%.1,$(MAN1_TXT
))
8 DOC_MAN7
=$(patsubst %.txt
,%.7,$(MAN7_TXT
))
20 # Please note that there is a minor bug in asciidoc.
21 # The version after 6.0.3 _will_ include the patch found here:
22 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
24 # Until that version is released you may have to apply the patch
25 # yourself - yes, all 6 characters of it!
38 $(INSTALL
) -m755
-d
$(DESTDIR
)/$(man1
) $(DESTDIR
)/$(man7
)
39 $(INSTALL
) $(DOC_MAN1
) $(DESTDIR
)/$(man1
)
40 $(INSTALL
) $(DOC_MAN7
) $(DESTDIR
)/$(man7
)
42 # 'include' dependencies
43 git-diff-
%.txt
: diff-format.txt diff-options.txt
47 rm -f
*.xml
*.html
*.1 *.7
50 asciidoc
-b xhtml11
-d manpage
$<
56 asciidoc
-b docbook
-d manpage
$<
58 glossary.html
: glossary.txt sort_glossary.pl
60 perl sort_glossary.pl | \
61 asciidoc
-b xhtml11
- > glossary.html
63 tutorial.html
: tutorial.txt
64 asciidoc
-b xhtml11 tutorial.txt