Skip to content

Commit c797f3b

Browse files
author
Christopher Hein
authored
Merge pull request amazon-archives#127 from joerocklin/makefile-improvements
Minor Makefile Tweak
2 parents 51ad4a7 + fe2632c commit c797f3b

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)