summaryrefslogtreecommitdiff
path: root/man/Makefile.am
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-08-17 09:00:28 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-08-17 09:00:28 -0400
commit25c4abc730f7d2407c33fcd5c48a6a82c541c921 (patch)
treefbe69e7247e608eff7ebd9fb69ea23fb4055ad38 /man/Makefile.am
parent1fb51a78ae5a063aa384b0b6b6fb7b11e972fcfa (diff)
man: store shadow man pages in git rather than generating them
Simplify the build process and the makefile. Local fix in CVS for bug 5628 is not required as the problem has been fixed in util-macros d9062e4077ebfd0985baf8418f3d0f111b9ddbba Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'man/Makefile.am')
-rw-r--r--man/Makefile.am43
1 files changed, 17 insertions, 26 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index b84aff5..8bdb115 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -23,18 +23,27 @@
libmandir = $(LIB_MAN_DIR)
-LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
+libman_PRE = \
+ Xss.man \
+ $(Xss_shadows:=.man)
-libman_PRE = Xss.man
-
-BUILT_SOURCES = $(Xss_shadowmen)
+Xss_shadows = \
+ XScreenSaverQueryExtension \
+ XScreenSaverQueryVersion \
+ XScreenSaverAllocInfo \
+ XScreenSaverQueryInfo \
+ XScreenSaverSelectInput \
+ XScreenSaverSetAttributes \
+ XScreenSaverUnsetAttributes \
+ XScreenSaverRegister \
+ XScreenSaverUnregister \
+ XScreenSaverGetRegistered \
+ XScreenSaverSuspend
EXTRA_DIST = $(libman_PRE)
+CLEANFILES = $(libman_DATA)
-CLEANFILES = $(libman_DATA) $(BUILT_SOURCES)
-
-libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \
- $(Xss_shadowmen)
+libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@)
SUFFIXES = .$(LIB_MAN_SUFFIX) .man
@@ -42,21 +51,3 @@ SUFFIXES = .$(LIB_MAN_SUFFIX) .man
.man.$(LIB_MAN_SUFFIX):
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
-# Generate man page shadow files (Replaces InstallManPageAliases from Imake)
-
-Xss_shadows = \
- XScreenSaverQueryExtension \
- XScreenSaverQueryVersion \
- XScreenSaverAllocInfo \
- XScreenSaverQueryInfo \
- XScreenSaverSelectInput \
- XScreenSaverSetAttributes \
- XScreenSaverUnsetAttributes \
- XScreenSaverRegister \
- XScreenSaverUnregister \
- XScreenSaverGetRegistered \
- XScreenSaverSuspend
-
-Xss_shadowmen = $(Xss_shadows:=.@LIB_MAN_SUFFIX@)
-$(Xss_shadowmen):
- $(AM_V_GEN)echo ".so man$(LIB_MAN_DIR_SUFFIX)/Xss.$(LIB_MAN_SUFFIX)" > $@