-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (30 loc) · 995 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
all: help
.PHONY: help
help:
@echo "help:"
@echo "- build : build frieza"
@echo "- install : install frieza"
@echo "- test : run all tests"
@echo "- release : will generate artefacts locally"
.PHONY: test
test: test-reuse test-go-fmt build
@echo all tests OK
.PHONY: test-reuse
test-reuse:
@echo test reuse:
docker run --rm --volume $(PWD):/data fsfe/reuse:0.11.1 lint
.PHONY: test-go-fmt
test-go-fmt:
@echo test go fmt:
test -z $(gofmt -l .)
.PHONY: build
build:
@echo building:
cd cmd/frieza && go build -ldflags "-X github.com/outscale-dev/frieza/internal/common.version=`cat version` -X github.com/outscale-dev/frieza/internal/common.commit=`git rev-list -1 HEAD`"
.PHONY: install
install:
@echo installing:
cd cmd/frieza && go install -ldflags "-X github.com/outscale-dev/frieza/internal/common.version=`cat version` -X github.com/outscale-dev/frieza/internal/common.commit=`git rev-list -1 HEAD`"
.PHONY: release
release:
goreleaser release --snapshot --rm-dist