You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2008/06/03 22:06:55 UTC

svn commit: r662869 - /incubator/qpid/trunk/qpid/cpp/docs/man/Makefile.am

Author: aconway
Date: Tue Jun  3 13:06:54 2008
New Revision: 662869

URL: http://svn.apache.org/viewvc?rev=662869&view=rev
Log:
Use help2man if available, pre-generated qpidd.1 if available, fall back to dummy man page.

Modified:
    incubator/qpid/trunk/qpid/cpp/docs/man/Makefile.am

Modified: incubator/qpid/trunk/qpid/cpp/docs/man/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/docs/man/Makefile.am?rev=662869&r1=662868&r2=662869&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/docs/man/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/docs/man/Makefile.am Tue Jun  3 13:06:54 2008
@@ -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