Skip to contentSkip to conversation

split core-git.txt and update

PATCH In review David Greaves 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

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

Makefile for html and man

---
commit 9b651818abae168f7e0dbfafda81c9a4298ea410
tree 4e3b4488b60547a6c90e8aefebb1befea26e0402
parent 6cec96ce19223f1852a12632ad44007822e2a3de
author David Greaves <[email protected]> Tue, 10 May 2005 22:20:25 +0100 committer David Greaves <[email protected]> Tue, 10 May 2005 22:20:25 +0100

 Documentation/Makefile |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+)
Documentation/Makefile (mode:100644) renamed from dev/null (tree:0b343ac5a1a6f8d6a4cb796c523ef84bf7e7254c) +24 -0
Index: 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 $<

!-------------------------------------------------------------flip-