aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7c338ee416e6da440d2f014ae6533bdc02bd43a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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