Skip to content

Commit

Permalink
Merge pull request #16 from md5/alternate-install-paths
Browse files Browse the repository at this point in the history
Support alternate install prefix
  • Loading branch information
cbednarski committed May 9, 2016
2 parents 2e460bb + 8efb243 commit d6b6a00
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
prefix=/usr/local
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
datarootdir=$(prefix)/share
datadir=$(datarootdir)
mandir=$(datarootdir)/man

.PHONY: all deps build test gox build-all install clean

all: build test

deps:
Expand All @@ -23,7 +32,8 @@ build-all: test
gox -arch="386 amd64 arm" -os="darwin linux windows" github.com/cbednarski/hostess/cmd/hostess

install: hostess
cp hostess /usr/local/bin/hostess
mkdir -p $(bindir)
cp hostess $(bindir)/hostess

clean:
rm -f ./hostess
Expand Down

0 comments on commit d6b6a00

Please sign in to comment.