summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7c338ee..30c3cb2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,18 @@
-PKG = github.com/majewsky/rtree
+PKG = github.com/majewsky/gofu
PREFIX = /usr
-all: build/rtree
+all: build/gofu
GO = GOPATH=$(CURDIR)/.gopath GOBIN=$(CURDIR)/build go
GO_BUILDFLAGS =
GO_LDFLAGS = -s -w
-build/rtree: FORCE
+build/gofu: FORCE
$(GO) install $(GO_BUILDFLAGS) -ldflags '$(GO_LDFLAGS)' '$(PKG)'
install: FORCE all
- install -D -m 0755 build/rtree "$(DESTDIR)$(PREFIX)/bin/rtree"
+ install -D -m 0755 build/gofu "$(DESTDIR)$(PREFIX)/bin/gofu"
+ ln -s gofu "$(DESTDIR)$(PREFIX)/bin/rtree"
vendor: FORCE
golangvend