summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1bdacf)
raw | patch | inline | side by side (parent: c1bdacf)
author | David Greaves <david@dgreaves.com> | |
Tue, 10 May 2005 21:32:39 +0000 (22:32 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 May 2005 22:03:34 +0000 (15:03 -0700) |
Makefile for html and man
Signed-off-by: David Greaves <david@dgreaves.com>
Signed-off-by: David Greaves <david@dgreaves.com>
Documentation/Makefile | [new file with mode: 0644] | patch | blob |
diff --git a/Documentation/Makefile b/Documentation/Makefile
--- /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 $<