diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2011-01-19 10:06:55 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2011-01-19 10:06:55 -0500 |
commit | 3bb9256b8e3a56b94281ea787c07f080c0a80312 (patch) | |
tree | 64629aac758408c38144b2e64d229310ee7e64c1 /man/Makefile.am | |
parent | f9d0aa7ca56c68aee0ba53a9ad9c232c544264b0 (diff) |
config: move man pages into their own directory
Use services provided by XORG_MANPAGE_SECTIONS.
Use standard Makefile for man pages.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'man/Makefile.am')
-rw-r--r-- | man/Makefile.am | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..d200a94 --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,22 @@ + +appmandir = $(APP_MAN_DIR) +appman_PRE = sessreg.man +appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) + +EXTRA_DIST = $(appman_PRE) filenames.sed.c +CLEANFILES = $(appman_DATA) filenames.sed +SUFFIXES = .$(APP_MAN_SUFFIX) .man + +AM_CPPFLAGS = -I.. +filenames.sed: filenames.sed.c + $(AM_V_GEN)$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/filenames.sed.c | \ + grep 's|__' > $@ + +# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure +MAN_SUBSTS += -f filenames.sed + +sessreg.$(APP_MAN_SUFFIX): filenames.sed + +.man.$(APP_MAN_SUFFIX): + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ |