-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (38 loc) · 1.04 KB
/
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
44
45
46
47
48
# Makefile for the HCL Align project.
BINARY_NAME=hclalign
MODULE_NAME=hclalign
all: build
build:
@echo "Compiling the project..."
go build -o ${BINARY_NAME} main.go
run: build
@echo "Running the project..."
./${BINARY_NAME}
deps:
@echo "Checking and downloading dependencies..."
go mod download
tidy:
@echo "Tidying and verifying module dependencies..."
go mod tidy
test:
@echo "Running tests..."
go test ./...
clean:
@echo "Cleaning up..."
go clean -modcache -fuzzcache
rm -f ${BINARY_NAME}
rm -f go.mod go.sum
init:
@echo "Initializing Go module..."
go mod init ${MODULE_NAME}
help:
@echo "Makefile commands:"
@echo "all - Compiles the project."
@echo "build - Builds the binary executable."
@echo "run - Runs the compiled binary."
@echo "deps - Downloads the project dependencies."
@echo "tidy - Tidies and verifies the module dependencies."
@echo "test - Runs all the tests."
@echo "clean - Cleans up the project."
@echo "init - Initializes a new Go module."
@echo "help - Prints this help message."