cleanup makefile

This commit is contained in:
alu
2026-09-08 22:54:17 +00:00
parent ed4cf064e3
commit 9458840292
2 changed files with 16 additions and 14 deletions
+16 -14
View File
@@ -1,24 +1,26 @@
.PHONY: build build-web build-wfa-js clean clean-wfa-js ensure-dist .PHONY: build build-web build-wfa clean clean-wfa clean-web
build: clean ensure-dist build-web build-wfa-js build: clean ensure-dist build-wfa build-web
@echo "======================== Building Binary =======================" @echo "======================== Building Binary ======================="
# resolve symbolic links in web by copying it into dist/web/ # resolve symbolic links in web by copying it into dist/web/
CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ . CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ .
build-web: ensure-dist clean: clean-wfa clean-web
cp -rL web/ dist/web/
build-wfa-js: ensure-dist
$(MAKE) -C WFA-JS
cp -f WFA-JS/dist/* web/modules
clean: clean-wfa-js
@echo "======================== Cleaning Project ======================" @echo "======================== Cleaning Project ======================"
go clean go clean
rm -rf dist/* rm -rf dist/*
clean-wfa-js:
$(MAKE) clean -C WFA-JS
ensure-dist: ensure-dist:
mkdir -p dist mkdir -p dist
build-web: ensure-dist
cp -rL web/ dist/web/
clean-web:
build-wfa:
$(MAKE) -C WFA-JS
cp -f WFA-JS/dist/* web/modules
clean-wfa:
$(MAKE) clean -C WFA-JS
Binary file not shown.