diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-30 14:20:10 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-30 14:20:10 -0500 |
| commit | f7d5a022b3f63b196a9106afba66b7e10fa849ce (patch) | |
| tree | dfe2791cc09292748f62efa00472718bfbe0ba26 /Makefile | |
| parent | 4d8aa867c7f4661167a4742fbdd865ed2449503e (diff) | |
Update makefile rules to reflect how CHANGES.md is used.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 $< |
