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:
Luchs
2015-03-26 20:21:41 +00:00
parent 1cd91a52b4
commit 628bf7ab1c
2 changed files with 33 additions and 0 deletions
+5
View File
@@ -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