]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/Makefile
[PATCH] Use gzip -f when building the git-core tarball
[thirdparty/git.git] / Documentation / Makefile
CommitLineData
b2bf34d6
DG
1MAN1_TXT=$(wildcard git-*.txt)
2MAN7_TXT=git.txt
b790abb8 3
b2bf34d6
DG
4DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT) $(MAN7_TXT))
5
6DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
7DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
8
9#
10# Please note that there is a minor bug in asciidoc.
11# The version after 6.0.3 _will_ include the patch found here:
12# http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
13#
14# Until that version is released you may have to apply the patch
15# yourself - yes, all 6 characters of it!
16#
17
18all: html man
b790abb8
DG
19
20html: $(DOC_HTML)
21
b2bf34d6
DG
22
23man: man1 man7
24man1: $(DOC_MAN1)
25man7: $(DOC_MAN7)
b790abb8 26
f77b100a 27# 'include' dependencies
dda2d79a 28git-diff-%.txt: diff-format.txt diff-options.txt
f77b100a 29 touch $@
b790abb8
DG
30
31clean:
7984eabe 32 rm -f *.xml *.html *.1 *.7
b790abb8
DG
33
34%.html : %.txt
35 asciidoc -b css-embedded -d manpage $<
36
7984eabe 37%.1 %.7 : %.xml
b790abb8
DG
38 xmlto man $<
39
40%.xml : %.txt
41 asciidoc -b docbook -d manpage $<