-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 706 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 706 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
APP_NAME=melodex
all: build
build:
go build -o $(APP_NAME) .
run: build
./$(APP_NAME)
clean:
rm -f $(APP_NAME)
deps:
go mod tidy
fmt:
go fmt ./...
test:
go test ./...
install:
install -Dm755 $(APP_NAME) /usr/local/bin
uninstall:
sudo rm -rf /usr/local/bin/$(APP_NAME)
help:
@echo "Makefile commands:"
@echo " make build - Build the project"
@echo " make run - Build and run the project"
@echo " make clean - Remove binary files"
@echo " make deps - Install/update dependencies"
@echo " make fmt - Format the code"
@echo " make test - Run tests"
@echo " make install - Installs the project"
@echo " make uninstall - Uninstalls the project"