1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

Abandon usage of $(eval) for test dependency

They lead to problems with FreeBSD's gmake.
This commit is contained in:
Jonas Fonseca 2006-01-21 08:37:13 +01:00 committed by Jonas Fonseca
parent 3f659f7876
commit d5f6f198b1

View File

@ -181,10 +181,12 @@ TESTDEPS += $(TESTDEPS-yes)
TEST_LIB=$(top_srcdir)/test/libtest.sh
export TEST_LIB
define test_prog
$(1): $(1).o $(TESTDEPS)
$$(call cmd,link)
endef
# 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.
%: %.o $(TESTDEPS)
$(call cmd,link)
$(TEST_PROGS): $(addsuffix .o,$(TEST_PROGS)) $(TESTDEPS)
TESTS = $(wildcard $(srcdir)test-*)
@ -201,8 +203,6 @@ CLEAN += $(TEST_PROGS) $(addsuffix .o,$(TEST_PROGS))
clean-default: clean-test
endif
$(foreach prog,$(TEST_PROGS),$(eval $(call test_prog,$(prog))))
.PHONY: $(TESTS)
.NOPARALLEL: