forked from yorukot/superfile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1011 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (38 loc) · 1011 Bytes
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
37
38
39
40
41
42
43
44
45
46
47
.PHONY: all build test lint clean dev testsuite notice help
# Default target
all: dev
# Development workflow (equivalent to ./dev.sh)
dev:
@FORCE_COLOR=1 ./dev.sh
# Build only
build:
@FORCE_COLOR=1 ./dev.sh --skip-tests
# Run tests
test:
@go test ./...
# Run linter
lint:
@golangci-lint run
# Run full testsuite
testsuite:
@FORCE_COLOR=1 ./dev.sh --testsuite
# Clean build artifacts
clean:
@rm -rf ./bin/
# Generate NOTICE file
notice:
@go run ./scripts/generate_notice.go
# Show help
help:
@echo "Available targets:"
@echo " all - Run full development workflow (default)"
@echo " dev - Run development workflow (./dev.sh)"
@echo " build - Build only (skip tests)"
@echo " test - Run unit tests only"
@echo " lint - Run linter only"
@echo " testsuite - Run full testsuite"
@echo " clean - Clean build artifacts"
@echo " notice - Generate NOTICE.md"
@echo " help - Show this help"
@echo ""
@echo "For more options, use: ./dev.sh --help"