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
|
TEST_LIB=$(top_srcdir)/test/libtest.sh
|
||||||
export TEST_LIB
|
export TEST_LIB
|
||||||
|
|
||||||
define test_prog
|
# This does the work for the next rule. It is a very general rule
|
||||||
$(1): $(1).o $(TESTDEPS)
|
# but as long as we don't put test programs in src/ it should work.
|
||||||
$$(call cmd,link)
|
%: %.o $(TESTDEPS)
|
||||||
endef
|
$(call cmd,link)
|
||||||
|
|
||||||
|
$(TEST_PROGS): $(addsuffix .o,$(TEST_PROGS)) $(TESTDEPS)
|
||||||
|
|
||||||
TESTS = $(wildcard $(srcdir)test-*)
|
TESTS = $(wildcard $(srcdir)test-*)
|
||||||
|
|
||||||
@ -201,8 +203,6 @@ CLEAN += $(TEST_PROGS) $(addsuffix .o,$(TEST_PROGS))
|
|||||||
clean-default: clean-test
|
clean-default: clean-test
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(foreach prog,$(TEST_PROGS),$(eval $(call test_prog,$(prog))))
|
|
||||||
|
|
||||||
.PHONY: $(TESTS)
|
.PHONY: $(TESTS)
|
||||||
.NOPARALLEL:
|
.NOPARALLEL:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user