From f7d5a022b3f63b196a9106afba66b7e10fa849ce Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 30 Nov 2025 14:20:10 -0500 Subject: Update makefile rules to reflect how CHANGES.md is used. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ad521916..32192554 100644 --- a/Makefile +++ b/Makefile @@ -167,15 +167,17 @@ src/stdlib/int64.o src/stdlib/int32.o src/stdlib/int16.o src/stdlib/int8.o: src/ # Num implementations depend on the shared header: src/stdlib/num32.o src/stdlib/num64.o: src/stdlib/numX.c.h -# 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 src/changes.md.h - @$(ECHO) $(CC) $(CFLAGS_PLACEHOLDER) -c $< -o $@ - @$(CC) $(CFLAGS) -c $< -o $@ +# These files all depend on the current tomo version: +src/compile/files.o src/compile/headers.o src/compile/statements.o src/config.o src/environment.o \ + src/modules.o src/stdlib/stacktrace.o src/stdlib/stdlib.o src/tomo.o src/typecheck.o: CHANGES.md src/changes.md.h: CHANGES.md @$(ECHO) "Embedding changes.md" xxd -i $< > $@ +# The main Tomo executable embeds the changelog: +src/tomo.o: src/changes.md.h + %: %.tm ./local-tomo -e $< -- cgit v1.2.3