From 0458ba8b2ea232188a9aa759c95a495412b9b403 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 6 Nov 2011 18:29:19 +0100 Subject: Move doc generation to separate Makefile --- docs/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docs/Makefile (limited to 'docs/Makefile') diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..aafb4ed --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,40 @@ +#!/usr/bin/make + +COMMANDS = git-buildpackage \ + git-import-dsc \ + git-import-dscs \ + git-import-orig \ + git-dch \ + gbp-pull \ + gbp-clone \ + gbp-pq \ + gbp-create-remote-repo + +MANUAL=manual-html +SGML_MANPAGES=$(patsubst %,%.1,$(COMMANDS)) +POD_MANPAGES=git-pbuilder.1 +MANPAGES=$(SGML_MANPAGES) $(POD_MANPAGES) +VERSION_ENT=version.ent +CHANGELOG=../debian/changelog + +all: $(MANUAL) $(MANPAGES) + +$(MANUAL): manual.sgml chapters/*.sgml manpages/*.sgml + docbook-2-html -s local $< + cp /usr/share/gtk-doc/data/*.png $(MANUAL) + +%.1: man.%.sgml + docbook2man -o . $< + +git-pbuilder.1: ../bin/git-pbuilder + pod2man $< $@ + +manual.sgml: $(VERSION_ENT) + +$(VERSION_ENT): $(CHANGELOG) + echo '' > $(VERSION_ENT) + +clean: + -rm -r manual-html/ + -rm *.1 manpage.* $(VERSION_ENT) + -- cgit v1.2.3