Files
meal-prep-vibecoded/Makefile
2025-10-25 15:40:28 +02:00

47 lines
931 B
Makefile

.PHONY: run build clean test deps install
# Run the application
run:
go run main.go
# Build the binary
build:
go build -o mealprep main.go
# Install dependencies
deps:
go mod tidy
go mod download
# Clean build artifacts and database
clean:
rm -f mealprep mealprep.db
# Clean only database (for fresh start)
clean-db:
rm -f mealprep.db
# Run with auto-reload (requires air: go install github.com/cosmtrek/air@latest)
dev:
air
# Test the application
test:
go test ./...
# Install the binary to GOPATH
install:
go install
# Show help
help:
@echo "Available targets:"
@echo " run - Run the application"
@echo " build - Build the binary"
@echo " deps - Install dependencies"
@echo " clean - Remove binary and database"
@echo " clean-db - Remove only database"
@echo " test - Run tests"
@echo " install - Install binary to GOPATH"
@echo " help - Show this help message"