feat: add amalgamation generation script and Makefile target for wren.c
Introduce a Python script that concatenates all Wren library source files into a single amalgamation file, resolving local `#include` directives recursively to eliminate internal header dependencies. Add a corresponding `wren.c` Makefile target that invokes the script on the core header and VM sources, along with `.DELETE_ON_ERROR` to clean up on failure.
This commit is contained in:
@@ -53,4 +53,9 @@ watchdocs:
|
||||
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 $^ > $@
|
||||
|
||||
.DELETE_ON_ERROR: wren.c
|
||||
.PHONY: debug release all clean test builtin docs watchdocs gh-pages
|
||||
|
||||
Reference in New Issue
Block a user