Skip to content

Commit

Permalink
Add support for build across platform on make
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathish kumar committed Sep 1, 2019
1 parent 561c253 commit cc0046a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
BUILD_CMD=$(GOBUILD) -o $(TARGET_DIR)/$(BINARY_NAME) -v
TEST_CMD=$(GOTEST) -v ./...

ZIP_ARCHIVE=current.zip

linuxBuild: clean deps
GOOS=linux GOARCH=amd64 $(BUILD_CMD)
install:
$(GOGET)

build_all:
for GOARCH in 386 amd64; do \
$(GOCMD) build -v -o $(TARGET_DIR)/kubedec-linux-$$GOARCH ; \
done;
build:
$(BUILD_CMD)
test:
Expand Down

0 comments on commit cc0046a

Please sign in to comment.