From 09744748af07f78eacd5a49796216a7fc16845ae Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 4 Apr 2017 01:22:17 +0200 Subject: read and write index file --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.3.1