From ade2b02753362b178d7e926e18601ae2b0698532 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 7 Jul 2010 16:38:03 -0700 Subject: 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 --- man/Makefile.am | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'man/Makefile.am') diff --git a/man/Makefile.am b/man/Makefile.am index 11ca1c2..73078f8 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -27,14 +27,14 @@ LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%) libman_PRE = Xinerama.man -BUILT_SOURCES = shadows.DONE +BUILT_SOURCES = $(Xinerama_shadowmen) EXTRA_DIST = $(libman_PRE) CLEANFILES = $(libman_DATA) $(BUILT_SOURCES) libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \ - $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@) + $(Xinerama_shadowmen) SUFFIXES = .$(LIB_MAN_SUFFIX) .man @@ -49,8 +49,6 @@ Xinerama_shadows = \ XineramaIsActive \ XineramaQueryScreens -shadows.DONE: - -rm -f $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@) - (for i in $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@) ; do \ - echo .so man$(LIB_MAN_DIR_SUFFIX)/Xinerama.$(LIB_MAN_SUFFIX) > $$i; \ - done) +Xinerama_shadowmen = $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@) +$(Xinerama_shadowmen): + $(AM_V_GEN)echo ".so man$(LIB_MAN_DIR_SUFFIX)/Xinerama.$(LIB_MAN_SUFFIX)" > $@ -- cgit v1.2.3