aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-11-06 18:29:19 +0100
committerGuido Günther <agx@sigxcpu.org>2011-11-06 18:29:19 +0100
commit0458ba8b2ea232188a9aa759c95a495412b9b403 (patch)
treea905dd36f664dff66ee1c9479c210256c6269a0c /docs
parent043b1cb3a4ef51fecafdb9558b183b62425f4d72 (diff)
Move doc generation to separate Makefile
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 00000000..aafb4ed7
--- /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 '<!ENTITY gbp-version "$(DEB_VERSION)">' > $(VERSION_ENT)
+
+clean:
+ -rm -r manual-html/
+ -rm *.1 manpage.* $(VERSION_ENT)
+