star-meteo

Time varying meteorological data
git clone git://git.meso-star.fr/star-meteo.git
Log | Files | Refs | README | LICENSE

commit c90e208cddb1d72fc7ecb6f66eec873dd811f1fc
parent 41b112aa75b450587053b19ce3b001004556eb97
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 18 Aug 2025 15:33:53 +0200

Fix the Makefile when linking the Stardis smeteo test

It depended on a “phony” target that forced it to be re-executed.  It
now depends on the plugin library, whose construction becomes a
dependency of the tests target, i.e., the target that builds all the
tests.

Diffstat:
MMakefile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -228,7 +228,7 @@ LIBS_TEST = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs rsys smeteo-local.pc) CFLAGS_TEST = -std=c99 $(CFLAGS_EXE) $(INCS_TEST) LDFLAGS_TEST = $(LDFLAGS_EXE) $(LIBS_TEST) -tests: library $(TEST_DEP) $(TEST_TGT) +tests: library $(TEST_DEP) $(TEST_TGT) $(PLUGIN) @$(MAKE) -fMakefile \ $$(for i in $(TEST_DEP); do echo -f"$${i}"; done) \ $$(for i in $(TEST_TGT); do echo -f"$${i}"; done) \ @@ -255,7 +255,7 @@ test_smeteo_load \ # There is no pkg-config file for the stardis plugin, as it must be # loaded at runtime by Stardis. Therefore, provide the library name # directly for link editing. -test_stardis_smeteo: config.mk smeteo-local.pc $(LIBNAME) stardis +test_stardis_smeteo: config.mk smeteo-local.pc $(LIBNAME) libstardis_smeteo.so $(CC) $(CFLAGS_TEST) -o $@ src/$@.o $(LDFLAGS_TEST) -lstardis_smeteo clean_test: