commit b6542e423c44ae557337810d06642d789206dfea
parent eadae6cce5f7fa1909ed37f0e553295d4216eb28
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 19 Oct 2023 18:39:34 +0200
Fix inclusion of dependencies for optional tests
The dependency file for optional tests, i.e. those that depend on
Star-3D, was included without being defined as a dependency of the
build_tests target. They were not generated and were therefore not
included correctly.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -137,10 +137,10 @@ SMC_CFLAGS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --cflags smc-local.pc)
SMC_LIBS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs smc-local.pc)
build_tests: build_library $(TEST_DEP) .test
- @$(MAKE) -fMakefile -f.test\
- $$(for i in $(TEST_DEP); do echo -f"$${i}"; done)\
- $$($(S3D_FOUND) && for i in $(TEST_DEP_S3D); do echo -f"$${i}"; done)\
- test_bin
+ @if $(S3D_FOUND); then $(MAKE) $(TEST_DEP_S3D); fi; \
+ $(MAKE) -fMakefile -f.test \
+ $$(for i in $(TEST_DEP); do echo -f"$${i}"; done) \
+ $$($(S3D_FOUND) && for i in $(TEST_DEP_S3D); do echo -f"$${i}"; done) test_bin
test: build_tests
@$(SHELL) make.sh run_test $(TEST_SRC)