From 8488a58be19bd724116289554e9277b0f1ce4541 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Tue, 20 Oct 2026 11:46:13 +0300 Subject: [PATCH] redo the scan when modules.mk is missing The stamp, newer than every source, stood for a modules.mk deleted since, so make went on without the rules and called sex-tests up to date after a test source changed. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2024b64..cc626ad 100644 --- a/Makefile +++ b/Makefile @@ -53,11 +53,13 @@ endif # imports, or a NAME.scm may have come to be the module an import # names; but modules.mk is rewritten only when that changed, since make # starts over each time it is, and a source dated in the future would -# have it start over for good +# have it start over for good. A stamp without modules.mk stands for +# nothing, and is redone whatever its date modules.mk: modules.stamp ; modules.stamp: $(SOURCES) $(filter-out %.import.scm,$(wildcard *.scm)) \ - tools/module-deps.scm dependencies.txt Makefile + tools/module-deps.scm dependencies.txt Makefile \ + $(if $(wildcard modules.mk),,FORCE) $(CSI) -s tools/module-deps.scm $(PROGRAMS) > modules.mk.tmp \ || { rm -f modules.mk.tmp; exit 1; } if cmp -s modules.mk.tmp modules.mk; then rm modules.mk.tmp; \ @@ -114,4 +116,4 @@ clean: rm -f *.link $(PROGRAM_OBJ:.o=.link) rm -f $(PROGRAM_NAMES) -.PHONY: all check run-tests check-modules check-exit-code install install-strip installdirs uninstall clean +.PHONY: all check run-tests check-modules check-exit-code install install-strip installdirs uninstall clean FORCE