diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-07-08 15:28:39 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-07-08 15:28:39 -0700 |
commit | 7395fb5197549ce048b9e759eb27cd7f4f284c66 (patch) | |
tree | 4d33f9b5bc948c4db41a367cb911291f35605585 /man | |
parent | 30a8e2d18fe6dc9fac599e2570360ebb27207811 (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>
Diffstat (limited to 'man')
-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 fcdbaf2..457ac58 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -27,14 +27,14 @@ LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%) libman_PRE = XDGA.man -BUILT_SOURCES = shadows.DONE +BUILT_SOURCES = $(XDGA_shadowmen) EXTRA_DIST = $(libman_PRE) CLEANFILES = $(libman_DATA) $(BUILT_SOURCES) libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \ - $(XDGA_shadows:=.@LIB_MAN_SUFFIX@) + $(XDGA_shadowmen) SUFFIXES = .$(LIB_MAN_SUFFIX) .man @@ -64,8 +64,6 @@ DGAFUNCS = XDGAQueryExtension \ XDGA_shadows = XF86DGA XFree86-DGA $(DGAFUNCS) -shadows.DONE: - -rm -f $(XDGA_shadows:=.@LIB_MAN_SUFFIX@) - (for i in $(XDGA_shadows:=.@LIB_MAN_SUFFIX@) ; do \ - echo .so man$(LIB_MAN_DIR_SUFFIX)/XDGA.$(LIB_MAN_SUFFIX) > $$i; \ - done) +XDGA_shadowmen = $(XDGA_shadows:=.@LIB_MAN_SUFFIX@) +$(XDGA_shadowmen): + $(AM_V_GEN)echo ".so man$(LIB_MAN_DIR_SUFFIX)/XDGA.$(LIB_MAN_SUFFIX)" > $@ |