diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-07-08 15:04:20 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-07-08 15:04:20 -0700 |
commit | 1fb51a78ae5a063aa384b0b6b6fb7b11e972fcfa (patch) | |
tree | ca296e13da97a57fa56c73c742717f4ac65d64de | |
parent | 2f5b75f49528c4bf57100b5d8fb83788013f7da9 (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.am | 12 |
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)" > $@ |