aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-16 14:21:45 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-16 14:21:45 -0400
commitb2af4bc802e13202a5973a214efab77a451188a8 (patch)
treeb912468992b87a6ca75559ac49088fa470cb41eb /Makefile
parentc426a08f5b376d0ef759698dbaf658d3143ddaac (diff)
Be less aggressive about recompilation when CHANGES.md updates
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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 $@