31 lines
742 B
Makefile
31 lines
742 B
Makefile
.PHONY: build test clean css dev docker-build docker-push docker-deploy
|
|
|
|
BINARY := heatguard
|
|
BUILD_DIR := bin
|
|
|
|
build: css
|
|
go build -o $(BUILD_DIR)/$(BINARY) ./cmd/heatguard
|
|
|
|
test:
|
|
go test -race ./internal/heat/... ./internal/risk/... ./internal/action/... \
|
|
./internal/weather/... ./internal/llm/... ./internal/compute/... ./internal/server/...
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
|
|
css:
|
|
npx @tailwindcss/cli -i tailwind/input.css -o web/css/app.css --minify
|
|
|
|
dev:
|
|
go run ./cmd/heatguard --dev --port 8080
|
|
|
|
docker-build:
|
|
docker build -t heatguard:latest .
|
|
|
|
docker-push:
|
|
docker tag heatguard:latest somegit.dev/vikingowl/heatguard:latest
|
|
docker push somegit.dev/vikingowl/heatguard:latest
|
|
|
|
docker-deploy:
|
|
make docker-build
|
|
make docker-push
|