From b223568067ef546339f685632ae1b01f27403b90 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Wed, 19 Jan 2011 10:06:57 -0500 Subject: [PATCH] config: move man pages into their own directory Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Change-Id: I34fbb134ec3ed22cb575b1355b7a164cbee64bf5 Signed-off-by: Gaetan Nadon --- Makefile.am | 18 +----------------- configure.ac | 5 ++++- man/Makefile.am | 12 ++++++++++++ xwud.man => man/xwud.man | 0 4 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 man/Makefile.am rename xwud.man => man/xwud.man (100%) diff --git a/Makefile.am b/Makefile.am index e2eb5b0..73942aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,6 +19,7 @@ # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. +SUBDIRS = man bin_PROGRAMS = xwud AM_CFLAGS = $(CWARNFLAGS) $(XWUD_CFLAGS) @@ -27,24 +28,7 @@ xwud_LDADD = $(XWUD_LIBS) xwud_SOURCES = \ xwud.c -appman_PRE = \ - xwud.man - - -appmandir = $(APP_MAN_DIR) - -appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) - -EXTRA_DIST = $(appman_PRE) MAINTAINERCLEANFILES = ChangeLog INSTALL -CLEANFILES = $(appman_DATA) - -SUFFIXES = .$(APP_MAN_SUFFIX) .man - -# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure -.man.$(APP_MAN_SUFFIX): - $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ - .PHONY: ChangeLog INSTALL diff --git a/configure.ac b/configure.ac index 43b0ae8..3d5da82 100644 --- a/configure.ac +++ b/configure.ac @@ -41,4 +41,7 @@ XORG_DEFAULT_OPTIONS # Checks for pkg-config packages PKG_CHECK_MODULES(XWUD, x11) -AC_OUTPUT([Makefile]) +AC_CONFIG_FILES([ + Makefile + man/Makefile]) +AC_OUTPUT diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..3c365bc --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,12 @@ + +appmandir = $(APP_MAN_DIR) +appman_PRE = xwud.man +appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) + +EXTRA_DIST = $(appman_PRE) +CLEANFILES = $(appman_DATA) +SUFFIXES = .$(APP_MAN_SUFFIX) .man + +# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure +.man.$(APP_MAN_SUFFIX): + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ diff --git a/xwud.man b/man/xwud.man similarity index 100% rename from xwud.man rename to man/xwud.man -- 2.7.4