mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-17 15:29:21 +00:00
Merge pull request #354 from smallstep/bundle-awskms-init
Add step-awskms-init into the builds.
This commit is contained in:
commit
3f660ff07e
22
Makefile
22
Makefile
@ -142,13 +142,15 @@ lint:
|
|||||||
|
|
||||||
INSTALL_PREFIX?=/usr/
|
INSTALL_PREFIX?=/usr/
|
||||||
|
|
||||||
install: $(PREFIX)bin/$(BINNAME) $(PREFIX)bin/$(CLOUDKMS_BINNAME)
|
install: $(PREFIX)bin/$(BINNAME) $(PREFIX)bin/$(CLOUDKMS_BINNAME) $(PREFIX)bin/$(AWSKMS_BINNAME)
|
||||||
$Q install -D $(PREFIX)bin/$(BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(BINNAME)
|
$Q install -D $(PREFIX)bin/$(BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(BINNAME)
|
||||||
$Q install -D $(PREFIX)bin/$(CLOUDKMS_BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(CLOUDKMS_BINNAME)
|
$Q install -D $(PREFIX)bin/$(CLOUDKMS_BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(CLOUDKMS_BINNAME)
|
||||||
|
$Q install -D $(PREFIX)bin/$(AWSKMS_BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(AWSKMS_BINNAME)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$Q rm -f $(DESTDIR)$(INSTALL_PREFIX)/bin/$(BINNAME)
|
$Q rm -f $(DESTDIR)$(INSTALL_PREFIX)/bin/$(BINNAME)
|
||||||
$Q rm -f $(DESTDIR)$(INSTALL_PREFIX)/bin/$(CLOUDKMS_BINNAME)
|
$Q rm -f $(DESTDIR)$(INSTALL_PREFIX)/bin/$(CLOUDKMS_BINNAME)
|
||||||
|
$Q rm -f $(DESTDIR)$(INSTALL_PREFIX)/bin/$(AWSKMS_BINNAME)
|
||||||
|
|
||||||
.PHONY: install uninstall
|
.PHONY: install uninstall
|
||||||
|
|
||||||
@ -163,6 +165,12 @@ endif
|
|||||||
ifneq ($(CLOUDKMS_BINNAME),"")
|
ifneq ($(CLOUDKMS_BINNAME),"")
|
||||||
$Q rm -f bin/$(CLOUDKMS_BINNAME)
|
$Q rm -f bin/$(CLOUDKMS_BINNAME)
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(AWSKMS_BINNAME),"")
|
||||||
|
$Q rm -f bin/$(AWSKMS_BINNAME)
|
||||||
|
endif
|
||||||
|
ifneq ($(YUBIKEY_BINNAME),"")
|
||||||
|
$Q rm -f bin/$(YUBIKEY_BINNAME)
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
@ -208,7 +216,7 @@ define BUNDLE_MAKE
|
|||||||
# $(2) -- Go Architecture (e.g. amd64, arm, arm64, etc.)
|
# $(2) -- Go Architecture (e.g. amd64, arm, arm64, etc.)
|
||||||
# $(3) -- Go ARM architectural family (e.g. 7, 8, etc.)
|
# $(3) -- Go ARM architectural family (e.g. 7, 8, etc.)
|
||||||
# $(4) -- Parent directory for executables generated by 'make'.
|
# $(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)
|
$(q) GOOS_OVERRIDE='GOOS=$(1) GOARCH=$(2) GOARM=$(3)' PREFIX=$(4) make $(4)bin/$(BINNAME) $(4)bin/$(CLOUDKMS_BINNAME) $(4)bin/$(AWSKMS_BINNAME)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
binary-linux:
|
binary-linux:
|
||||||
@ -228,16 +236,16 @@ define BUNDLE
|
|||||||
# $(2) -- Step Platform Name
|
# $(2) -- Step Platform Name
|
||||||
# $(3) -- Step Binary Architecture
|
# $(3) -- Step Binary Architecture
|
||||||
# $(4) -- Step Binary Name (For Windows Comaptibility)
|
# $(4) -- Step Binary Name (For Windows Comaptibility)
|
||||||
$(q) ./make/bundle.sh "$(BINARY_OUTPUT)$(1)" "$(RELEASE)" "$(VERSION)" "$(2)" "$(3)" "$(4)" "$(5)"
|
$(q) ./make/bundle.sh "$(BINARY_OUTPUT)$(1)" "$(RELEASE)" "$(VERSION)" "$(2)" "$(3)" "$(4)" "$(5)" "$(6)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
bundle-linux: binary-linux binary-linux-arm64 binary-linux-armv7
|
bundle-linux: binary-linux binary-linux-arm64 binary-linux-armv7
|
||||||
$(call BUNDLE,linux,linux,amd64,$(BINNAME),$(CLOUDKMS_BINNAME))
|
$(call BUNDLE,linux,linux,amd64,$(BINNAME),$(CLOUDKMS_BINNAME),$(AWSKMS_BINNAME))
|
||||||
$(call BUNDLE,linux.arm64,linux,arm64,$(BINNAME),$(CLOUDKMS_BINNAME))
|
$(call BUNDLE,linux.arm64,linux,arm64,$(BINNAME),$(CLOUDKMS_BINNAME),$(AWSKMS_BINNAME))
|
||||||
$(call BUNDLE,linux.armv7,linux,armv7,$(BINNAME),$(CLOUDKMS_BINNAME))
|
$(call BUNDLE,linux.armv7,linux,armv7,$(BINNAME),$(CLOUDKMS_BINNAME),$(AWSKMS_BINNAME))
|
||||||
|
|
||||||
bundle-darwin: binary-darwin
|
bundle-darwin: binary-darwin
|
||||||
$(call BUNDLE,darwin,darwin,amd64,$(BINNAME),$(CLOUDKMS_BINNAME))
|
$(call BUNDLE,darwin,darwin,amd64,$(BINNAME),$(CLOUDKMS_BINNAME),$(AWSKMS_BINNAME))
|
||||||
|
|
||||||
.PHONY: binary-linux binary-darwin bundle-linux bundle-darwin
|
.PHONY: binary-linux binary-darwin bundle-linux bundle-darwin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user