[PATCH 4/4] split core-git.txt and update
[git.git] / Documentation / Makefile
1 DOC_SRC=$(wildcard git*.txt)
2 DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
3 DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
4
5 all: $(DOC_HTML) $(DOC_MAN)
6
7 html: $(DOC_HTML)
8
9 man: $(DOC_MAN)
10
11 git-%: %.c $(LIB_FILE)
12         $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
13
14 clean:
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 $<