-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 1.04 KB
/
Makefile
File metadata and controls
43 lines (35 loc) · 1.04 KB
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
.PHONY: build build-all build-current clean test lint help install
# Default target
help:
@echo "Harpoon (hpn) Build System"
@echo "=========================="
@echo ""
@echo "Available targets:"
@echo " make build - Build for current platform"
@echo " make build-all - Build for all platforms"
@echo " make clean - Clean build artifacts"
@echo " make test - Run tests"
@echo " make lint - Run golangci-lint (mirrors CI)"
@echo " make install - Install to /usr/local/bin (requires sudo)"
@echo ""
@echo "Note: All binaries are output to the dist/ directory"
build: build-current
build-current:
@./build.sh current
build-all:
@./build.sh all
clean:
@./build.sh clean
test:
@go test ./...
lint:
@golangci-lint run --timeout=5m
install: build-current
@if [ -f "dist/hpn" ]; then \
sudo cp dist/hpn /usr/local/bin/hpn && \
sudo chmod +x /usr/local/bin/hpn && \
echo "✅ Installed hpn to /usr/local/bin/hpn"; \
else \
echo "❌ Binary not found. Run 'make build' first."; \
exit 1; \
fi