-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 723 Bytes
/
Makefile
File metadata and controls
41 lines (33 loc) · 723 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
41
NAME = envy
.PHONY: compile
build: clean
@echo "--> Compile ..."
CGO_ENABLED=0 go build -o output/$(NAME)
.PHONY: clean
clean:
@echo "--> Clean ..."
rm -rf dist output/$(NAME)
.PHONY: test
test:
@echo "--> Test Go Sources ..."
go test -race ./...
.PHONY: vet
vet:
@echo "--> Vet Go Sources ..."
go vet ./...
.PHONY: copywrite
copywrite:
@echo "--> Checking Copywrite ..."
copywrite \
--config .github/workflows/scripts/copywrite.hcl headers \
--spdx "MIT"
.PHONY: lint
lint: vet
@echo "--> Lint ..."
@golangci-lint run --config .github/workflows/scripts/golangci.yaml
.PHONY: release
release:
@echo "--> RELEASE ..."
envy exec gh-release goreleaser release --clean
$(MAKE) clean
default: compile