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

Commit

Permalink
Merge pull request #92 from dennwc/make_default
Browse files Browse the repository at this point in the history
Makefile should not cross-compile by default
  • Loading branch information
juanjux committed Oct 18, 2018
2 parents e8ad92e + 87f0545 commit b60af89
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 b60af89

Please sign in to comment.