Files
ProxmoxAAS-Dashboard/Makefile
T
2026-07-15 23:25:54 +00:00

26 lines
591 B
Makefile

.PHONY: build test clean wfa-js
build: clean build-wfa-js
@echo "======================== Building Binary ======================="
mkdir -p dist
# 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/ .
build-wfa-js:
$(MAKE) -C WFA-JS
cp -f WFA-JS/dist/* web/modules
test: clean test-wfa-js
test-wfa-js:
$(MAKE) test -C WFA-JS
clean: clean-wfa-js
@echo "======================== Cleaning Project ======================"
go clean
rm -rf dist/*
clean-wfa-js:
$(MAKE) clean -C WFA-JS