diff options
-rw-r--r-- | cpp/Makefile.am | 2 | ||||
-rw-r--r-- | cpp/configure.ac | 3 | ||||
-rw-r--r-- | cpp/man/Makefile.am | 18 | ||||
-rw-r--r-- | cpp/man/qpidd.x | 5 |
4 files changed, 27 insertions, 1 deletions
diff --git a/cpp/Makefile.am b/cpp/Makefile.am index 644b1519dc..c3636e5683 100644 --- a/cpp/Makefile.am +++ b/cpp/Makefile.am @@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = README-dist DESIGN LICENSE.txt NOTICE.txt README.rhel3 -SUBDIRS = gen lib tests src docs/api +SUBDIRS = gen lib tests src docs/api man # Update libtool, if needed. libtool: $(LIBTOOL_DEPS) diff --git a/cpp/configure.ac b/cpp/configure.ac index a43040befd..3ee1a9b1de 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -25,6 +25,8 @@ AM_PROG_CC_C_O AC_PROG_CXX AC_USE_SYSTEM_EXTENSIONS +AM_MISSING_PROG([HELP2MAN], [help2man]) + AC_ARG_ENABLE(warnings, [ --enable-warnings turn on lots of compiler warnings (recommended)], [case "${enableval}" in @@ -128,6 +130,7 @@ AC_CONFIG_FILES([ lib/client/Makefile lib/broker/Makefile src/Makefile + man/Makefile tests/Makefile docs/api/Makefile ]) diff --git a/cpp/man/Makefile.am b/cpp/man/Makefile.am new file mode 100644 index 0000000000..392633251e --- /dev/null +++ b/cpp/man/Makefile.am @@ -0,0 +1,18 @@ +dist_man_MANS = qpidd.1 + +man_aux = $(dist_man_MANS:.1=.x) $(optional_mans:.1=.x) +EXTRA_DIST = $(man_aux) $(optional_mans) +MAINTAINERCLEANFILES = $(dist_man_MANS) + +qpidd.1: $(srcdir)/qpidd.x $(top_srcdir)/src/qpidd.cpp + +# Depend on configure.ac to get version number changes. +$(dist_man_MANS): $(top_srcdir)/configure.ac + +SUFFIXES = .x .1 +.x.1: + @rm -f $@ + @echo "Updating man page $@" + $(HELP2MAN) --no-info --include=$(srcdir)/$*.x --output=$@-t ../src/$* + @chmod a-w $@-t + @mv $@-t $@ diff --git a/cpp/man/qpidd.x b/cpp/man/qpidd.x new file mode 100644 index 0000000000..e60505cc9c --- /dev/null +++ b/cpp/man/qpidd.x @@ -0,0 +1,5 @@ +[NAME] +qpidd \- the Qpid broker daemon + +[DESCRIPTION] +.\" Add any additional description here |