From 853f23e18c28548bce4647d4e54a5cfb317ac3dc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Jun 2007 02:42:04 -0400 Subject: [PATCH] [test] Use check_PROGRAMS instead of custom made SUPPORT_PROGS It better handles $(EXEEXT) and is exactly made for this purpose. --- test/Makefile.am | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 020549f2f..4d9f5f51a 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)