1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

BUILD: Fix test building to support more than one test program pr directory

This commit is contained in:
Jonas Fonseca 2006-01-31 19:25:37 +01:00 committed by Jonas Fonseca
parent 3fc0eb3884
commit 367afb2ceb

View File

@ -176,16 +176,14 @@ TESTDEPS += $(TESTDEPS-yes)
TEST_LIB=$(top_srcdir)/test/libtest.sh TEST_LIB=$(top_srcdir)/test/libtest.sh
export TEST_LIB export TEST_LIB
# This does the work for the next rule. It is a very general rule # This is a very general rule but as long as we don't put test programs in src/
# but as long as we don't put test programs in src/ it should work. # it should work.
%: %.o $(TESTDEPS) %: %.o $(TESTDEPS)
$(call cmd,link) $(call cmd,link)
$(TEST_PROGS): $(addsuffix .o,$(TEST_PROGS)) $(TESTDEPS)
TESTS = $(wildcard $(srcdir)test-*) TESTS = $(wildcard $(srcdir)test-*)
$(TESTS): $(TEST_PROGS) $(TESTS): $(addsuffix .o,$(TEST_PROGS)) $(TEST_PROGS)
@echo "*** $(notdir $@) ***"; \ @echo "*** $(notdir $@) ***"; \
$(call shellquote,$(SHELL)) $@ $(TEST_OPTS) $(call shellquote,$(SHELL)) $@ $(TEST_OPTS)