Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
makefile should not cross-compile by default
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <[email protected]>
  • Loading branch information
Denys Smirnov committed Oct 18, 2018
1 parent e8ad92e commit 87f0545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ ifeq ("$(HOSTOS)", "windows")
OUT_WINDOWS=$(OUT_DIR)\\$(DIR_WINDOWS)
endif

build: build-$(HOSTOS)

.PHONY: build-all
ifeq ("$(HOSTOS)", "linux")
build-all: build-linux build-windows
Expand All @@ -51,8 +53,6 @@ endif
vendor: Gopkg.*
dep ensure --vendor-only

build: build-$(HOSTOS)

build-linux: $(DEPS_C) $(DEPS_GO)
mkdir -p $(OUT_LINUX) && \
GOOS=linux GOARCH=amd64 $(GO_BUILD) $(BUILD_MODE) -o=$(OUT_LINUX)/$(OUT_NAME).so $(SRC_DIR)/ && \
Expand Down

0 comments on commit 87f0545

Please sign in to comment.