.PHONY: build frontend backend run migrate tidy test clean frontend: cd frontend && npm ci && npm run build rm -rf backend/static/* cp -r frontend/build/* backend/static/ backend: mkdir -p bin # -tags nodynamic forces gen2brain/webp to use its pure-Go transpiled path # (no purego/dlopen), keeping the binary fully static. cd backend && CGO_ENABLED=0 go build -tags nodynamic -trimpath -ldflags="-s -w" \ -o ../bin/shared-album ./cmd/server build: frontend backend run: backend cd backend && ../bin/shared-album migrate: cd backend && go run ./cmd/migrate tidy: cd backend && go mod tidy test: cd backend && go test ./... clean: rm -rf bin backend/static/* touch backend/static/.gitkeep