From 367afb2cebb8b6cde10e28e25bcd2784c5c39038 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 31 Jan 2006 19:25:37 +0100 Subject: [PATCH] BUILD: Fix test building to support more than one test program pr directory --- Makefile.lib | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile.lib b/Makefile.lib index b0953760..af488125 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -176,16 +176,14 @@ TESTDEPS += $(TESTDEPS-yes) TEST_LIB=$(top_srcdir)/test/libtest.sh export TEST_LIB -# This does the work for the next rule. It is a very general rule -# but as long as we don't put test programs in src/ it should work. +# This is a very general rule but as long as we don't put test programs in src/ +# it should work. %: %.o $(TESTDEPS) $(call cmd,link) -$(TEST_PROGS): $(addsuffix .o,$(TEST_PROGS)) $(TESTDEPS) - TESTS = $(wildcard $(srcdir)test-*) -$(TESTS): $(TEST_PROGS) +$(TESTS): $(addsuffix .o,$(TEST_PROGS)) $(TEST_PROGS) @echo "*** $(notdir $@) ***"; \ $(call shellquote,$(SHELL)) $@ $(TEST_OPTS)