diff --git a/Makefile b/Makefile index ad15cc6..45d20be 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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)/ && \