mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
simplify makefile targets for slim binaries
This commit is contained in:
parent
22ee727dc0
commit
7cb425d33d
13
Makefile
13
Makefile
|
@ -96,11 +96,14 @@ desktop: desktop-osx
|
|||
$(DIST_DIR)/$(VERSION):
|
||||
mkdir -p $(DIST_DIR)/$(VERSION)
|
||||
|
||||
$(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-%.tar.gz:
|
||||
$(eval BIN_SUFFIX := $(subst bbgo-$(VERSION)-,,$(basename $(basename $(notdir $@)))))
|
||||
$(eval BIN_NAME := $(subst $(VERSION)-,,$(basename $(basename $(notdir $@)))))
|
||||
$(MAKE) $(BIN_NAME)
|
||||
tar -C $(BIN_DIR) -cvzf $@ $(BIN_NAME)
|
||||
$(DIST_DIR)/$(VERSION)/bbgo-slim-$(VERSION)-%.tar.gz: bbgo-slim-% $(DIST_DIR)/$(VERSION)
|
||||
tar -C $(BIN_DIR) -cvzf $@ $<
|
||||
ifeq ($(SIGN),1)
|
||||
gpg --yes --detach-sign --armor $@
|
||||
endif
|
||||
|
||||
$(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-%.tar.gz: bbgo-% $(DIST_DIR)/$(VERSION)
|
||||
tar -C $(BIN_DIR) -cvzf $@ $<
|
||||
ifeq ($(SIGN),1)
|
||||
gpg --yes --detach-sign --armor $@
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user