Fixing amalgamation script.
h3rald h3rald@h3rald.com
Mon, 16 Dec 2024 07:29:40 +0100
2 files changed,
13 insertions(+),
3 deletions(-)
M
Makefile
→
Makefile
@@ -8,7 +8,7 @@ hex: src/hex.c
$(CC) $(CFLAGS) $(LDFLAGS) $< -o hex src/hex.c: - sh scripts/amalgamate.sh + bash scripts/amalgamate.sh web/assets/hex.wasm: src/hex.c emcc -O2 -sASYNCIFY -DBROWSER -sEXPORTED_RUNTIME_METHODS=stringToUTF8 src/hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js
M
scripts/amalgamate.sh
→
scripts/amalgamate.sh
@@ -2,8 +2,18 @@ #!/bin/bash
# Files to combine header_file="src/hex.h" -source_files=( "src/stack.c" "src/registry.c" "src/error.c" "src/help.c" "src/stacktrace.c" - "src/parser.c" "src/interpreter.c" "src/helpers.c" "src/symbols.c" "src/main.c") +source_files=( + "src/stack.c" + "src/registry.c" + "src/error.c" + "src/help.c" + "src/stacktrace.c" + "src/parser.c" + "src/interpreter.c" + "src/helpers.c" + "src/symbols.c" + "src/main.c" +) output_file="src/hex.c" # Start with a clean output file