Files
ProxmoxAAS-Dashboard/Makefile
T
alu 9306058e90
tronnet/workflows: Static Analysis -- Golang / lint-check (push) Failing after 4s
tronnet/workflows: Static Analysis -- Golang / static-go (push) Failing after 3s
use replace for web instead of static import
2026-07-30 18:58:53 +00:00

27 lines
651 B
Makefile

.PHONY: build test clean wfa-js
build: clean ensure-dist build-web build-wfa-js
@echo "======================== Building Binary ======================="
# resolve symbolic links in web by copying it into dist/web/
CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ .
build-web: ensure-dist
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 ======================"
go clean
rm -rf dist/*
clean-wfa-js:
$(MAKE) clean -C WFA-JS
ensure-dist:
mkdir -p dist
workflow-init: ensure-dist build-web build-wfa-js