mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Abandon usage of $(eval) for test dependency
They lead to problems with FreeBSD's gmake.
This commit is contained in:
parent
3f659f7876
commit
d5f6f198b1
12
Makefile.lib
12
Makefile.lib
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user