Skip to content

Commit

Permalink
Merge pull request #1259 from joseph-v/fixmake
Browse files Browse the repository at this point in the history
Update Makefile with distribution target
  • Loading branch information
skdwriting committed Apr 12, 2020
2 parents 46daf28 + fecbc66 commit 7d16676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DIST_DIR := $(BASE_DIR)/build/dist
VERSION ?= $(shell git describe --exact-match 2> /dev/null || \
git describe --match=$(git rev-parse --short=8 HEAD) \
--always --dirty --abbrev=8)
BUILD_TGT := opensds-hotpot-$(VERSION)-linux-amd64
BUILD_TGT := soda-api-$(VERSION)-linux-amd64

all: build

Expand Down Expand Up @@ -75,6 +75,7 @@ dist: build
mkdir $(BUILD_TGT) && \
cp -r $(BUILD_DIR)/bin $(BUILD_TGT)/ && \
cp $(BASE_DIR)/LICENSE $(BUILD_TGT)/ && \
cp $(BASE_DIR)/openapi-spec/swagger.yaml $(BUILD_TGT)/ && \
zip -r $(DIST_DIR)/$(BUILD_TGT).zip $(BUILD_TGT) && \
tar zcvf $(DIST_DIR)/$(BUILD_TGT).tar.gz $(BUILD_TGT) && \
tree \
Expand Down

0 comments on commit 7d16676

Please sign in to comment.