summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-08 14:40:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-08 14:40:39 -0700
commit8f23ad4703c7fcfdd7d53d52ddebb7590c3cb265 (patch)
treecc7d242812adc67f24bfff11b620642460e62de7
parent82bc24d6137cc4f03944af88e69c4d67b26d3cc9 (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 b10470b..7370502 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -28,9 +28,9 @@ LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
libman_PRE = Xrandr.man
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \
- $(Xrandr_shadows:=.@LIB_MAN_SUFFIX@)
+ $(Xrandr_shadowmen)
-BUILT_SOURCES = shadows.DONE
+BUILT_SOURCES = $(Xrandr_shadowmen)
EXTRA_DIST = $(libman_PRE)
@@ -59,8 +59,6 @@ Xrandr_shadows = \
XRRRootToScreen \
XRRSelectInput
-shadows.DONE:
- -rm -f $(Xrandr_shadows:=.@LIB_MAN_SUFFIX@)
- (for i in $(Xrandr_shadows:=.@LIB_MAN_SUFFIX@) ; do \
- echo .so man$(LIB_MAN_DIR_SUFFIX)/Xrandr.$(LIB_MAN_SUFFIX) > $$i; \
- done)
+Xrandr_shadowmen = $(Xrandr_shadows:=.@LIB_MAN_SUFFIX@)
+$(Xrandr_shadowmen):
+ $(AM_V_GEN)echo ".so man$(LIB_MAN_DIR_SUFFIX)/Xrandr.$(LIB_MAN_SUFFIX)" > $@