aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Makefile')
-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)
+