summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-08 15:04:20 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-08 15:04:20 -0700
commit1fb51a78ae5a063aa384b0b6b6fb7b11e972fcfa (patch)
treeca296e13da97a57fa56c73c742717f4ac65d64de
parent2f5b75f49528c4bf57100b5d8fb83788013f7da9 (diff)
Use make rules instead of shell for loops to generate shadow man pages
Allows parallel make and simpler build logs/error reporting Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--man/Makefile.am12
1 files changed, 5 insertions, 7 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index edfe37f..b84aff5 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -27,14 +27,14 @@ LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
libman_PRE = Xss.man
-BUILT_SOURCES = shadows.DONE
+BUILT_SOURCES = $(Xss_shadowmen)
EXTRA_DIST = $(libman_PRE)
CLEANFILES = $(libman_DATA) $(BUILT_SOURCES)
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \
- $(Xss_shadows:=.@LIB_MAN_SUFFIX@)
+ $(Xss_shadowmen)
SUFFIXES = .$(LIB_MAN_SUFFIX) .man
@@ -57,8 +57,6 @@ Xss_shadows = \
XScreenSaverGetRegistered \
XScreenSaverSuspend
-shadows.DONE:
- -rm -f $(Xss_shadows:=.@LIB_MAN_SUFFIX@)
- (for i in $(Xss_shadows:=.@LIB_MAN_SUFFIX@) ; do \
- echo .so man$(LIB_MAN_DIR_SUFFIX)/Xss.$(LIB_MAN_SUFFIX) > $$i; \
- done)
+Xss_shadowmen = $(Xss_shadows:=.@LIB_MAN_SUFFIX@)
+$(Xss_shadowmen):
+ $(AM_V_GEN)echo ".so man$(LIB_MAN_DIR_SUFFIX)/Xss.$(LIB_MAN_SUFFIX)" > $@