summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-05-02 21:22:20 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-05-02 21:22:20 +0200
commit72733e8203654cd26464c8c5a6c955b025102cca (patch)
tree4a8c312fb25dcf79f2cd61b88b7f2ff6baf8d996 /Makefile
parent6b382c55ed7885857a6232a0c8b086ab1f64985e (diff)
downloadgofu-72733e8203654cd26464c8c5a6c955b025102cca.tar.gz
restructure rtree into gofu (with rtree as the first applet)
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