diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-07-08 15:50:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-07-08 15:50:02 -0700 |
commit | 01df17daf923b7eeeb3476149d189c5dc8da3bf8 (patch) | |
tree | 479c3a173b188e6ebf6384695f322f4001329c84 | |
parent | a3603591f3086f7aeb92b193b2736733b4e79047 (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 e0c5cb7..0fc1db8 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -27,14 +27,14 @@ LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%) libman_PRE = XF86VM.man -BUILT_SOURCES = shadows.DONE +BUILT_SOURCES = $(XF86VM_shadowmen) EXTRA_DIST = $(libman_PRE) CLEANFILES = $(libman_DATA) $(BUILT_SOURCES) libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \ - $(XF86VM_shadows:=.@LIB_MAN_SUFFIX@) + $(XF86VM_shadowmen) # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure SUFFIXES = .$(LIB_MAN_SUFFIX) .man @@ -67,8 +67,6 @@ XF86VM_shadows = \ XF86VidModeGetGammaRampSize \ XF86VidModeGetPermissions -shadows.DONE: - -rm -f $(XF86VM_shadows:=.@LIB_MAN_SUFFIX@) - (for i in $(XF86VM_shadows:=.@LIB_MAN_SUFFIX@) ; do \ - echo .so man$(LIB_MAN_DIR_SUFFIX)/XF86VM.$(LIB_MAN_SUFFIX) > $$i; \ - done) +XF86VM_shadowmen = $(XF86VM_shadows:=.@LIB_MAN_SUFFIX@) +$(XF86VM_shadowmen): + $(AM_V_GEN)echo ".so man$(LIB_MAN_DIR_SUFFIX)/XF86VM.$(LIB_MAN_SUFFIX)" > $@ |