chore: redirect amalgamation output to build/wren.c and add dedicated make target

The Makefile now defines an explicit `amalgamation` target that writes the combined source into `build/wren.c` instead of the default `wren.c` in the project root. The `generate_amalgamation.py` script is updated with whitespace formatting improvements for readability. The `.PHONY` list is extended to include the new `amalgamation` target.
This commit is contained in:
Bob Nystrom
2015-04-25 15:38:45 +00:00
parent 82bf33c6f4
commit 21ea9c788c
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -54,8 +54,8 @@ gh-pages: docs
@ cp -r build/docs/. build/gh-pages
# Build amalgamation of all Wren library files.
wren.c: src/include/wren.h src/vm/*.h src/vm/*.c
./script/generate_amalgamation.py > $@
amalgamation: src/include/wren.h src/vm/*.h src/vm/*.c
./script/generate_amalgamation.py > build/wren.c
.DELETE_ON_ERROR: wren.c
.PHONY: debug release all clean test builtin docs watchdocs gh-pages
.PHONY: all amalgamation builtin clean debug docs gh-pages release test watchdocs