25 lines
421 B
Makefile
25 lines
421 B
Makefile
.PHONY: run build test clean help
|
|
|
|
# Default target
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " run - Run the API server"
|
|
@echo " build - Build the API binary"
|
|
@echo " test - Run tests"
|
|
@echo " clean - Clean build artifacts"
|
|
|
|
# Run the API server
|
|
run:
|
|
go run main.go
|
|
|
|
# Build the API binary
|
|
build:
|
|
go build -o bin/api main.go
|
|
|
|
# Run tests
|
|
test:
|
|
go test ./...
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -rf bin/
|