forked from malice-plugins/pkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 846 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
.PHONY: all deps test validate lint
all: deps test validate
deps:
go get -t ./...
go get -u github.com/golang/lint/golint
test:
go test -tags experimental -race -cover ./...
validate: lint
go vet ./...
test -z "$(gofmt -s -l . | tee /dev/stderr)"
lint:
out="$$(golint ./...)"; \
if [ -n "$$(golint ./...)" ]; then \
echo "$$out"; \
exit 1; \
fi
.PHONY: bump
bump: ## Incriment version patch number
@echo " > Bumping VERSION"
@hack/bump/version -p $(shell cat VERSION) > VERSION
@git commit -am "bumping version to $(VERSION)"
@git push
.PHONY: release
release: bump ## Create a new release from the VERSION
@echo " > Creating Release"
@hack/make/release v$(shell cat VERSION)
.PHONY: re_release
re_release: ## Create a new release from the VERSION
@echo " > Recreating Release"
@hack/make/release v$(shell cat VERSION)