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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user