summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-07 16:38:03 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-07 16:38:03 -0700
commitade2b02753362b178d7e926e18601ae2b0698532 (patch)
treef2fed96f0360cfcfe965d5cb9a9a409fd1fd08de
parent2921352cfef9faf007f2b35aa06089425ba095ed (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 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)" > $@