diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2017-05-02 21:22:20 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2017-05-02 21:22:20 +0200 |
| commit | 72733e8203654cd26464c8c5a6c955b025102cca (patch) | |
| tree | 4a8c312fb25dcf79f2cd61b88b7f2ff6baf8d996 /Makefile | |
| parent | 6b382c55ed7885857a6232a0c8b086ab1f64985e (diff) | |
| download | gofu-72733e8203654cd26464c8c5a6c955b025102cca.tar.gz | |
restructure rtree into gofu (with rtree as the first applet)
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 |
