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
View File
@@ -48,9 +48,12 @@ def add_file(filename):
# Print license on top.
add_comment_file(join(WREN_DIR, 'LICENSE'))
out.write('\n')
# Source files.
add_file(join(WREN_DIR, 'src', 'include', 'wren.h'))
# Must be included here because of conditional compilation.
add_file(join(WREN_DIR, 'src', 'vm', 'wren_debug.h'))
for f in iglob(join(WREN_DIR, 'src', 'vm', '*.c')):
add_file(f)