Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
feat: add 'make install' target (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos authored Nov 13, 2018
1 parent 383a168 commit eebb6f1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PROJECT := duffle
ORG := deis
BINDIR := $(CURDIR)/bin
GOFLAGS :=
LDFLAGS := -w -s
TESTFLAGS :=
PROJECT := duffle
ORG := deis
BINDIR := $(CURDIR)/bin
GOFLAGS :=
LDFLAGS := -w -s
TESTFLAGS :=
INSTALL_DIR := /usr/local/bin

ifeq ($(OS),Windows_NT)
TARGET = $(PROJECT).exe
Expand All @@ -26,6 +27,10 @@ default: build
build:
go build $(GOFLAGS) -o $(BINDIR)/$(TARGET) -ldflags '$(LDFLAGS)' github.com/$(ORG)/$(PROJECT)/cmd/...

.PHONY: install
install:
install $(BINDIR)/$(TARGET) $(INSTALL_DIR)

CX_OSES = linux windows darwin
CX_ARCHS = amd64

Expand Down

0 comments on commit eebb6f1

Please sign in to comment.