commit b0c41d0f10ff4e99cc901c6fb6121304dffe3430
parent dcd64d7cdfe105506379036d72a48d254ad6196c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 22 May 2025 15:51:35 +0200
Correction of Makefile targets
Tests were not cleaned up by the "clean" target.
Test prerequisites were incorrect, leading to compilation errors with
NetBSD make: the files defining the test list were missing.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -101,7 +101,7 @@ uninstall:
rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-uniq/COPYING"
rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-uniq/README.md"
-clean: #clean_test
+clean: clean_test
rm -f $(DEP) $(OBJ) $(LIBNAME)
rm -f .config libsuniq.o suniq.pc suniq-local.pc
@@ -120,7 +120,7 @@ LIBS_TEST = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs rsys suniq-local)
CFLAGS_TEST = -std=c89 $(CFLAGS_EXE) $(INCS_TEST)
LDFLAGS_TEST = $(LDFLAGS_EXE) $(LIBS_TEST)
-tests: library $(TEST_DEP) $(TEST_BIN)
+tests: library $(TEST_DEP) $(TEST_TGT)
@$(MAKE) -fMakefile \
$$(for i in $(TEST_DEP); do echo -f"$${i}"; done) \
$$(for i in $(TEST_TGT); do echo -f"$${i}"; done) \