summaryrefslogtreecommitdiff
path: root/cpp/docs
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-06-03 20:06:54 +0000
committerAlan Conway <aconway@apache.org>2008-06-03 20:06:54 +0000
commiteed738de8b03468e05c26be974c835656847e119 (patch)
tree6f8dca7a57ae8290c69f45f87995e2b2f9a0e33a /cpp/docs
parent13c4609b785289656270f9bd1f72c0e1c33cea73 (diff)
downloadqpid-python-eed738de8b03468e05c26be974c835656847e119.tar.gz
Use help2man if available, pre-generated qpidd.1 if available, fall back to dummy man page.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662869 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/docs')
-rw-r--r--cpp/docs/man/Makefile.am15
1 files changed, 9 insertions, 6 deletions
diff --git a/cpp/docs/man/Makefile.am b/cpp/docs/man/Makefile.am
index efc690050c..08b100121b 100644
--- a/cpp/docs/man/Makefile.am
+++ b/cpp/docs/man/Makefile.am
@@ -1,26 +1,29 @@
-if HAVE_HELP2MAN
-
dist_man_MANS = qpidd.1
man_aux = $(dist_man_MANS:.1=.x)
EXTRA_DIST = $(man_aux)
DISTCLEANFILES = $(dist_man_MANS)
+CLEANFILES=qpidd.1
dist-hook: $(man_aux)
-qpidd.1: $(srcdir)/qpidd.x $(top_builddir)/src/qpidd
-
# Depend on configure.ac to get version number changes.
$(dist_man_MANS): $(top_srcdir)/configure.ac
+if HAVE_HELP2MAN
+
SUFFIXES = .x .1
+qpidd.1: $(srcdir)/qpidd.x $(top_builddir)/src/qpidd
.x.1:
@rm -f $@
@echo "Updating man page $@"
$(HELP2MAN) --no-info --include=$(srcdir)/$*.x --output=$@-t ../../src/$*
@chmod a-w $@-t
@mv $@-t $@
+else
+qpidd.1:
+ @echo "Warning: help2man not available, man page lacks options."
+ @cp $(srcdir)/qpidd.x $@
+endif
-CLEANFILES=qpidd.1
-endif