]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/Makefile
[PATCH] plug memory leak in diff.c::diff_free_filepair()
[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
87a81c83
EB
9prefix=$(HOME)
10bin=$(prefix)/bin
11mandir=$(prefix)/man
12man1=$(mandir)/man1
13man7=$(mandir)/man7
a682ef9f 14# DESTDIR=
87a81c83
EB
15
16INSTALL=install
17
b2bf34d6
DG
18#
19# Please note that there is a minor bug in asciidoc.
20# The version after 6.0.3 _will_ include the patch found here:
21# http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
22#
23# Until that version is released you may have to apply the patch
24# yourself - yes, all 6 characters of it!
25#
26
27all: html man
b790abb8
DG
28
29html: $(DOC_HTML)
30
b2bf34d6
DG
31
32man: man1 man7
33man1: $(DOC_MAN1)
34man7: $(DOC_MAN7)
b790abb8 35
87a81c83 36install:
a682ef9f
PB
37 $(INSTALL) -m755 -d $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
38 $(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
39 $(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
87a81c83 40
f77b100a 41# 'include' dependencies
dda2d79a 42git-diff-%.txt: diff-format.txt diff-options.txt
f77b100a 43 touch $@
b790abb8
DG
44
45clean:
7984eabe 46 rm -f *.xml *.html *.1 *.7
b790abb8
DG
47
48%.html : %.txt
71931c19 49 asciidoc -b xhtml11 -d manpage $<
b790abb8 50
7984eabe 51%.1 %.7 : %.xml
b790abb8
DG
52 xmlto man $<
53
54%.xml : %.txt
55 asciidoc -b docbook -d manpage $<