From b2af4bc802e13202a5973a214efab77a451188a8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 16 Aug 2025 14:21:45 -0400 Subject: Be less aggressive about recompilation when CHANGES.md updates --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 16395135..1f20a3e0 100644 --- a/Makefile +++ b/Makefile @@ -136,7 +136,12 @@ tags: config.mk: configure.sh bash ./configure.sh -%.o: %.c src/ast.h src/environment.h src/types.h config.mk CHANGES.md +%.o: %.c src/ast.h src/environment.h src/types.h config.mk + @echo $(CC) $(CFLAGS_PLACEHOLDER) -c $< -o $@ + @$(CC) $(CFLAGS) -c $< -o $@ + +# Specifically src/tomo.c needs to recompile if CHANGES.md changes: +src/tomo.o: src/tomo.c src/ast.h src/environment.h src/types.h config.mk CHANGES.md @echo $(CC) $(CFLAGS_PLACEHOLDER) -c $< -o $@ @$(CC) $(CFLAGS) -c $< -o $@ -- cgit v1.2.3