aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-04-04 01:22:17 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-04-04 01:22:17 +0200
commit09744748af07f78eacd5a49796216a7fc16845ae (patch)
treed3aa23165d588a1eda2dc2e89b1ae12ea4c68dbc /Makefile
parent5516e0baf2c38eb50188f93d29c57b74994f6875 (diff)
downloadgofu-09744748af07f78eacd5a49796216a7fc16845ae.tar.gz
read and write index file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7c338ee
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PKG = github.com/majewsky/rtree
+PREFIX = /usr
+
+all: build/rtree
+
+GO = GOPATH=$(CURDIR)/.gopath GOBIN=$(CURDIR)/build go
+GO_BUILDFLAGS =
+GO_LDFLAGS = -s -w
+
+build/rtree: FORCE
+ $(GO) install $(GO_BUILDFLAGS) -ldflags '$(GO_LDFLAGS)' '$(PKG)'
+
+install: FORCE all
+ install -D -m 0755 build/rtree "$(DESTDIR)$(PREFIX)/bin/rtree"
+
+vendor: FORCE
+ golangvend
+
+.PHONY: FORCE