blob: bee996874ef868be9f92ea4468a362c68fad5068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
.PHONY: help build run dev test css css-watch install clean
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install all dependencies (Go + npm)
go mod download
npm install
css: ## Build CSS once
npm run build
css-watch: ## Watch CSS for changes
npm run dev
build: css ## Build Go binary with CSS
go build -o dashboard cmd/dashboard/main.go
run: css ## Build CSS and run server
go run cmd/dashboard/main.go
dev: ## Run in development mode (CSS watch + Go server in separate terminals)
@echo "Run these in separate terminals:"
@echo " Terminal 1: make css-watch"
@echo " Terminal 2: go run cmd/dashboard/main.go"
test: ## Run tests
go test ./...
clean: ## Clean build artifacts
rm -f dashboard
rm -f web/static/css/output.css
rm -rf node_modules
|