@@ -20,7 +20,7 @@ GITFILES := $(shell find ".git/")
20
20
build : $(LOCAL_BINARY )
21
21
22
22
$(LOCAL_BINARY ) : $(SOURCES ) GITCOMMIT_SHA
23
- ./scripts/build_binary.sh ./bin/local $(VERSION ) $(shell cat GITCOMMIT_SHA)
23
+ ./scripts/build_binary.sh ./bin/local img2lambda $(VERSION ) $(shell cat GITCOMMIT_SHA)
24
24
@echo " Built img2lambda"
25
25
26
26
.PHONY : test
@@ -64,23 +64,19 @@ docker-test:
64
64
--env IMG_TOOL_RELEASE=$(IMG_TOOL_RELEASE ) \
65
65
golang:1.11 make test
66
66
67
- .PHONY : all-platforms
68
- all-platforms : $(LINUX_BINARY ) $(DARWIN_BINARY ) $(WINDOWS_BINARY )
67
+ .PHONY : stage-release-binaries
68
+ stage-release-binaries : $(LINUX_BINARY ) $(DARWIN_BINARY ) $(WINDOWS_BINARY )
69
69
70
70
$(WINDOWS_BINARY ) : $(SOURCES ) GITCOMMIT_SHA
71
- @mkdir -p ./bin/windows-amd64
72
- TARGET_GOOS=windows GOARCH=amd64 ./scripts/build_binary.sh ./bin/windows-amd64 $(VERSION ) $(shell cat GITCOMMIT_SHA)
73
- mv ./bin/windows-amd64/img2lambda ./bin/windows-amd64/img2lambda.exe
71
+ TARGET_GOOS=windows GOARCH=amd64 ./scripts/build_binary.sh ./bin/release-$(VERSION ) windows-amd64-img2lambda.exe $(VERSION ) $(shell cat GITCOMMIT_SHA)
74
72
@echo " Built img2lambda.exe for windows"
75
73
76
74
$(LINUX_BINARY ) : $(SOURCES ) GITCOMMIT_SHA
77
- @mkdir -p ./bin/linux-amd64
78
- TARGET_GOOS=linux GOARCH=amd64 ./scripts/build_binary.sh ./bin/linux-amd64 $(VERSION ) $(shell cat GITCOMMIT_SHA)
75
+ TARGET_GOOS=linux GOARCH=amd64 ./scripts/build_binary.sh ./bin/release-$(VERSION ) linux-amd64-img2lambda $(VERSION ) $(shell cat GITCOMMIT_SHA)
79
76
@echo " Built img2lambda for linux"
80
77
81
78
$(DARWIN_BINARY ) : $(SOURCES ) GITCOMMIT_SHA
82
- @mkdir -p ./bin/darwin-amd64
83
- TARGET_GOOS=darwin GOARCH=amd64 ./scripts/build_binary.sh ./bin/darwin-amd64 $(VERSION ) $(shell cat GITCOMMIT_SHA)
79
+ TARGET_GOOS=darwin GOARCH=amd64 ./scripts/build_binary.sh ./bin/release-$(VERSION ) darwin-amd64-img2lambda $(VERSION ) $(shell cat GITCOMMIT_SHA)
84
80
@echo " Built img2lambda for darwin"
85
81
86
82
GITCOMMIT_SHA : $(GITFILES )
0 commit comments