diff options
author | David Greaves <david@dgreaves.com> | 2005-05-10 22:32:39 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-05-10 15:03:34 -0700 |
commit | b790abb874890926e4cfda552bfa89d1d4ff972b (patch) | |
tree | c01ecef44a6102aad5558fe0f8b1b6d2186e64da /Documentation/Makefile | |
parent | c1bdacf97e3f51ac5c239a16e300e0986a5da53d (diff) | |
download | git-b790abb874890926e4cfda552bfa89d1d4ff972b.tar.gz git-b790abb874890926e4cfda552bfa89d1d4ff972b.tar.xz |
[PATCH 4/4] split core-git.txt and update
Makefile for html and man
Signed-off-by: David Greaves <david@dgreaves.com>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r-- | Documentation/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile new file mode 100644 index 000000000..b23991d52 --- /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 $< |