-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 908 Bytes
/
Makefile
File metadata and controls
40 lines (33 loc) · 908 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
.PHONY: build test install clean run help
# Binary name
BINARY_NAME=go-config-diff
# Build the binary
build:
@echo "Building $(BINARY_NAME)..."
@go build -o $(BINARY_NAME) ./cmd/go-config-diff
# Run tests
test:
@echo "Running tests..."
@go test ./... -v
# Install the binary
install:
@echo "Installing $(BINARY_NAME)..."
@go install ./cmd/go-config-diff
# Clean build artifacts
clean:
@echo "Cleaning..."
@rm -f $(BINARY_NAME)
@go clean
# Run the application with example
run: build
@echo "Running example..."
@./$(BINARY_NAME) examples/config1.yaml examples/config2.yaml || true
# Show help
help:
@echo "Available targets:"
@echo " build - Build the binary"
@echo " test - Run tests"
@echo " install - Install the binary to GOPATH/bin"
@echo " clean - Clean build artifacts"
@echo " run - Build and run with example files"
@echo " help - Show this help message"