[cairo-commit] test/Makefile.am

Behdad Esfahbod behdad at kemper.freedesktop.org
Sun Jun 10 23:41:44 PDT 2007


 test/Makefile.am |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

New commits:
diff-tree 853f23e18c28548bce4647d4e54a5cfb317ac3dc (from 1d86c7fa888918c32eb13adb084de78883e17c84)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Jun 11 02:42:04 2007 -0400

    [test] Use check_PROGRAMS instead of custom made SUPPORT_PROGS
    
    It better handles $(EXEEXT) and is exactly made for this purpose.

diff --git a/test/Makefile.am b/test/Makefile.am
index 020549f..4d9f5f5 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -456,7 +456,7 @@ ps-features			\
 multi-page			\
 fallback-resolution
 
-SUPPORT_PROGS =
+check_PROGRAMS =
 EXTRA_PROGRAMS =
 
 # We're using _GNU_SOURCE to get the prototype for asprintf. This may
@@ -501,10 +501,10 @@ if HAVE_PTHREAD
 LDADD += -lpthread
 endif
 
-SUPPORT_PROGS += imagediff$(EXEEXT) png-flatten$(EXEEXT)
+check_PROGRAMS += imagediff png-flatten
 
 if CAIRO_CAN_TEST_PDF_SURFACE
-SUPPORT_PROGS += pdf2png$(EXEEXT)
+check_PROGRAMS += pdf2png
 pdf2png_CFLAGS = $(POPPLER_CFLAGS)
 # add LDADD, so poppler uses "our" cairo
 pdf2png_LDADD  = $(LDADD) $(POPPLER_LIBS)
@@ -517,7 +517,7 @@ endif
 endif
 
 if CAIRO_CAN_TEST_SVG_SURFACE
-SUPPORT_PROGS += svg2png$(EXEEXT)
+check_PROGRAMS += svg2png
 svg2png_CFLAGS = $(LIBRSVG_CFLAGS)
 # add LDADD, so librsvg uses "our" cairo
 svg2png_LDADD  = $(LDADD) $(LIBRSVG_LIBS)
@@ -529,7 +529,7 @@ svg2pdf_LDADD  = $(LDADD) $(LIBRSVG_LIBS
 endif
 endif
 
-EXTRA_PROGRAMS += $(TESTS) $(DISABLED_TESTS) $(SUPPORT_PROGS)
+EXTRA_PROGRAMS += $(TESTS) $(DISABLED_TESTS)
 
 # Do a funny transition of CAIRO_TEST_TARGET through TARGETS such that
 # one can limit tested targets both through CAIRO_TEST_TARGET env var
@@ -600,9 +600,7 @@ html:
 rehtml:
 	@$(MAKE) $(AM_MAKEFLAGS) TESTS="$(FAILED_TESTS)" html
 
-$(TESTS): $(SUPPORT_PROGS)
-
-%.log: %
+%.log: % $(check_PROGRAMS)
 	-./$<
 
 NOLOG_TESTS_LOG = $(NOLOG_TESTS:=.log)


More information about the cairo-commit mailing list