add wfa-js as submodule, consolidate build process

This commit is contained in:
2026-07-06 20:37:48 +00:00
parent 415d60d228
commit 8710da338b
4 changed files with 589 additions and 4 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
.PHONY: build test clean
.PHONY: build test clean wfa-js
build: clean
build: clean wfa-js
@echo "======================== Building Binary ======================="
# resolve symbolic links in web by copying it into dist/web/
cp -rL web/ dist/web/
CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ .
wfa-js:
$(MAKE) -C WFA-JS
cp -f WFA-JS/dist/* web/modules
test: clean
go run .