|
|
@@ -231,35 +231,6 @@ distclean: clean
|
|
|
|
|
|
.PHONY: changelog debian distclean
|
|
|
|
|
|
-#################################################
|
|
|
-# Build statically compiled step binary for various operating systems
|
|
|
-#################################################
|
|
|
-
|
|
|
-BINARY_OUTPUT=$(OUTPUT_ROOT)binary/
|
|
|
-RELEASE=./.releases
|
|
|
-
|
|
|
-define BUNDLE_MAKE
|
|
|
- # $(1) -- Go Operating System (e.g. linux, darwin, windows, etc.)
|
|
|
- # $(2) -- Go Architecture (e.g. amd64, arm, arm64, etc.)
|
|
|
- # $(3) -- Go ARM architectural family (e.g. 7, 8, etc.)
|
|
|
- # $(4) -- Parent directory for executables generated by 'make'.
|
|
|
- $(q) GOOS_OVERRIDE='GOOS=$(1) GOARCH=$(2) GOARM=$(3)' PREFIX=$(4) make $(4)bin/$(BINNAME) $(4)bin/$(CLOUDKMS_BINNAME) $(4)bin/$(AWSKMS_BINNAME)
|
|
|
-endef
|
|
|
-
|
|
|
-binary-linux:
|
|
|
- $(call BUNDLE_MAKE,linux,amd64,,$(BINARY_OUTPUT)linux/)
|
|
|
-
|
|
|
-binary-linux-arm64:
|
|
|
- $(call BUNDLE_MAKE,linux,arm64,,$(BINARY_OUTPUT)linux.arm64/)
|
|
|
-
|
|
|
-binary-linux-armv7:
|
|
|
- $(call BUNDLE_MAKE,linux,arm,7,$(BINARY_OUTPUT)linux.armv7/)
|
|
|
-
|
|
|
-binary-darwin:
|
|
|
- $(call BUNDLE_MAKE,darwin,amd64,,$(BINARY_OUTPUT)darwin/)
|
|
|
-
|
|
|
-.PHONY: binary-linux binary-linux-arm64 binary-linux-armv7 binary-darwin
|
|
|
-
|
|
|
#################################################
|
|
|
# Targets for creating step artifacts
|
|
|
#################################################
|