From 72733e8203654cd26464c8c5a6c955b025102cca Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 2 May 2017 21:22:20 +0200 Subject: restructure rtree into gofu (with rtree as the first applet) --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.3.1