From 3c6ebaea76633f521390325e6a2c7cd9fb3bcdaf Mon Sep 17 00:00:00 2001 From: Vaughn Harmon Date: Tue, 5 Jun 2018 15:13:52 -0500 Subject: [PATCH] Makefile works to install and build cross platform binaries --- Makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 5fd7e2a..5db9ee0 100644 --- a/Makefile +++ b/Makefile @@ -33,17 +33,16 @@ test: clean: $(GOCLEAN) -# install: release -# ifeq ($(CUROS),darwin) -# INSTALL_TARGET=bin/$(BINARY_NAME).osx -# endif -# ifeq ($(CUROS),linux) -# INSTALL_TARGET=bin/$(BINARY_NAME).linux$(ARCHWIDTH) -# endif -# ifeq ($(CUROS),windows) -# INSTALL_TARGET=bin/$(BINARY_NAME).win$(ARCHWIDTH) -# endif -# cf install-plugin -f '$(INSTALL_TARGET)' +install: release +ifeq ($(CUROS),darwin) + cf install-plugin -f bin/$(BINARY_NAME).osx +endif +ifeq ($(CUROS),linux) + cf install-plugin -f bin/$(BINARY_NAME).linux$(ARCHWIDTH) +endif +ifeq ($(CUROS),windows) + cf install-plugin -f bin/$(BINARY_NAME).win$(ARCHWIDTH) +endif deps: $(GOGET) ./...