diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |
