Permalink
Browse files

[enhance] manpages: created dir manpage and its Makefile

  • Loading branch information...
1 parent 9529343 commit 948958086814c2900de96212728832824643aed7 Mathieu Baudet committed Dec 15, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 manpages/Makefile
View
18 manpages/Makefile
@@ -0,0 +1,18 @@
+BLDDIR=../_build
+
+#MANDIR=$(BDLDIR)/manpages
+
+.PHONY: all
+
+all: opa.1 opatop.1 opa-db-server.1 opa-db-tool.1 opa-plugin-browser.1 opa-plugin-builder.1 opadoc.1
+
+opa.1: $(BLDDIR)/opa/gen_opa_manpage.native
+ $< > $@
+
+opatop.1: $(BLDDIR)/opatop/gen_opatop_manpage.native
+ $< > $@
+
+%.1: $(BLDDIR)/bin/%
+ @echo ".TH \"$*\" \"1\" \"`date +"%Y-%m-%d"`\" \"\" \"Opa Manual\"" > $@
+ @echo ".SH \"HELP\"" >> $@
+ $< --help 2>> $@ ||true

0 comments on commit 9489580

Please sign in to comment.