forked from amazon-archives/aws-service-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 813 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
39
40
41
42
commitSHA := $(shell git describe --dirty --always)
dateStr := $(shell date +%s)
repo ?= github.com/awslab/aws-service-operator
.PHONY: build
build:
go build -ldflags "-X main.commit=$(commitSHA) -X main.date=$(dateStr)" ./cmd/aws-service-operator
.PHONY: release
release:
goreleaser --rm-dist
.PHONY: dev-release
dev-release:
goreleaser --rm-dist --snapshot --skip-publish
.PHONY: test
test:
go test -v -cover -race $(repo)/...
.PHONY: tag
tag:
git tag -a ${VERSION} -s
git push origin --tags
.PHONY: install-aws-codegen
install-aws-codegen:
${MAKE} -C code-generation install
.PHONY: aws-codegen
aws-codegen:
aws-service-operator-codegen process
.PHONY: k8s-codegen
k8s-codegen:
./hack/update-codegen.sh
.PHONY: codegen
codegen: aws-codegen k8s-codegen
.PHONY: rebuild
rebuild: codegen build