tests: fix tests being systematically re-executed
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sun, 17 Jul 2022 22:35:45 +0200
changeset 3550 45e482f279f4
parent 3549 0af7b6a96c53
child 3551 edf59ae145b7
tests: fix tests being systematically re-executed
tests/Makefile
--- a/tests/Makefile	Sun Jul 17 18:17:43 2022 +0200
+++ b/tests/Makefile	Sun Jul 17 22:35:45 2022 +0200
@@ -86,20 +86,20 @@
 	mkdir -p $(build_dir)
 
 define make_src_rule
-$(build_dir)/$(1)/$($(1)_checksum).sha1: $(build_dir) $(workspace)/$(1)
+$(build_dir)/$(1)/$($(1)_checksum).sha1: | $(build_dir) $(workspace)/$(1)
 	rm -rf $(build_dir)/$(1)
 	tar -C $(workspace) $(tar_opts) -c $(1) | tar -C $(build_dir) -x
 	touch $$@
 endef
 $(foreach project,$(BUILT_PROJECTS),$(eval $(call make_src_rule,$(project))))
 
-$(build_dir)/matiec/iec2c: | $(build_dir)/matiec/$(matiec_checksum).sha1
+$(build_dir)/matiec/iec2c: $(build_dir)/matiec/$(matiec_checksum).sha1
 	cd $(build_dir)/matiec && \
     autoreconf -i && \
     ./configure && \
     make
 
-$(build_dir)/open62541/build/bin/libopen62541.a: | $(build_dir)/open62541/$(open62541_checksum).sha1
+$(build_dir)/open62541/build/bin/libopen62541.a: $(build_dir)/open62541/$(open62541_checksum).sha1
 	cd $(build_dir)/open62541 && \
     rm -rf build && mkdir build && cd build && \
 	cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL .. && \