Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit fe2632c

Browse files
committed
let codegen makefile handle more logic
1 parent 51ad4a7 commit fe2632c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tag:
2525

2626
.PHONY: install-aws-codegen
2727
install-aws-codegen:
28-
go install -ldflags "-X main.commit=$(commitSHA) -X main.date=$(dateStr)" ./code-generation/cmd/aws-service-operator-codegen
28+
${MAKE} -C code-generation install
2929

3030
.PHONY: aws-codegen
3131
aws-codegen:

code-generation/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ dateStr := $(shell date +%s)
55
build:
66
go build -ldflags "-X main.commit=$(commitSHA) -X main.date=$(dateStr)" ./cmd/aws-service-operator-codegen
77

8+
.PHONY: install
9+
install: rebuild
10+
go install -ldflags "-X main.commit=$(commitSHA) -X main.date=$(dateStr)" ./cmd/aws-service-operator-codegen
11+
812
.PHONY: install-bindata
913
install-bindata:
1014
go get -u github.com/jteeuwen/go-bindata/...

0 commit comments

Comments
 (0)