Arthur Lu cfceb32134 implement basic web server for dashboard,
use templates to do basic SSR on head and header
2025-02-25 21:35:11 +00:00

16 lines
379 B
Makefile

.PHONY: build test clean
build: clean
@echo "======================== Building Binary ======================="
# resolve symbolic links in web by copying it into dist/web/
cp -rL web/ dist/web/
CGO_ENABLED=0 go build -ldflags="-s -w" -o dist/ .
test: clean
go run .
clean:
@echo "======================== Cleaning Project ======================"
go clean
rm -rf dist/*