1
0
mirror of https://github.com/git/git.git synced 2024-11-18 21:14:17 +01:00

[PATCH 4/4] split core-git.txt and update

Makefile for html and man

Signed-off-by: David Greaves <david@dgreaves.com>
This commit is contained in:
David Greaves 2005-05-10 22:32:39 +01:00 committed by Junio C Hamano
parent c1bdacf97e
commit b790abb874

24
Documentation/Makefile Normal file

@ -0,0 +1,24 @@
DOC_SRC=$(wildcard git*.txt)
DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
all: $(DOC_HTML) $(DOC_MAN)
html: $(DOC_HTML)
man: $(DOC_MAN)
git-%: %.c $(LIB_FILE)
$(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
clean:
rm -f *.xml *.html *.1
%.html : %.txt
asciidoc -b css-embedded -d manpage $<
%.1 : %.xml
xmlto man $<
%.xml : %.txt
asciidoc -b docbook -d manpage $<