-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (36 loc) · 781 Bytes
/
Makefile
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
# Define variables
BINARY_NAME=global-entry-slot-notifier
SRC_DIR=./cmd/main.go
WITH_FLAGS=
# Default target
.PHONY: all
all: deps build
# Build the binary
.PHONY: build
build:
@echo "Building $(BINARY_NAME)..."
@go build -o $(BINARY_NAME) $(SRC_DIR)
# Run tests
.PHONY: test
test:
@echo "Running tests..."
@go test -v ./...
# Clean build files
.PHONY: clean
clean:
@echo "Cleaning..."
@rm -f $(BINARY_NAME)
# Install dependencies
.PHONY: deps
deps:
@echo "Installing dependencies..."
@go mod tidy
# Display help
.PHONY: help
help:
@echo "Makefile targets:"
@echo " build - Build the binary"
@echo " test - Run tests"
@echo " clean - Clean build files"
@echo " deps - Install dependencies"
@echo " help - Display this help message"