-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 526 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 526 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
APP = tblogs
.PHONY: build run test lint clean install help
build:
go build -o bin/$(APP) ./cmd/$(APP)
run: build
bin/$(APP)
test:
go test ./...
lint:
golangci-lint run
clean:
rm -rf bin/$(APP)
install:
go install ./cmd/$(APP)
help:
@echo "Common commands:"
@echo " make build # Build the app"
@echo " make run # Build and run the app"
@echo " make test # Run tests"
@echo " make lint # Run linter"
@echo " make clean # Remove built files"
@echo " make install # Install the app"