]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/Makefile
[PATCH 4/4] split core-git.txt and update
[thirdparty/git.git] / Documentation / Makefile
CommitLineData
b790abb8
DG
1DOC_SRC=$(wildcard git*.txt)
2DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
3DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
4
5all: $(DOC_HTML) $(DOC_MAN)
6
7html: $(DOC_HTML)
8
9man: $(DOC_MAN)
10
11git-%: %.c $(LIB_FILE)
12 $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
13
14clean:
15 rm -f *.xml *.html *.1
16
17%.html : %.txt
18 asciidoc -b css-embedded -d manpage $<
19
20%.1 : %.xml
21 xmlto man $<
22
23%.xml : %.txt
24 asciidoc -b docbook -d manpage $<