Skip to content

Commit

Permalink
Makefile works to install and build cross platform binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaughn Harmon committed Jun 5, 2018
1 parent 953db3a commit 3c6ebae
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) ./...
Expand Down

0 comments on commit 3c6ebae

Please sign in to comment.