From b790abb874890926e4cfda552bfa89d1d4ff972b Mon Sep 17 00:00:00 2001 From: David Greaves Date: Tue, 10 May 2005 22:32:39 +0100 Subject: [PATCH] [PATCH 4/4] split core-git.txt and update Makefile for html and man Signed-off-by: David Greaves --- Documentation/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/Makefile diff --git a/Documentation/Makefile b/Documentation/Makefile new file mode 100644 index 00000000..b23991d5 --- /dev/null +++ b/Documentation/Makefile @@ -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 $< -- 2.11.0