mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-10-23 13:02:48 +00:00
If $GOROOT is defined, Makefile should respect the value, fix #8
This commit is contained in:
1 parent
1491138f69
commit
58e6cdfb71
1 file changed
+9
-1
@@ -1,9 +1,17 @@
|
|||||||
.PHONY: all clean install uninstall deps
|
.PHONY: all clean install uninstall deps
|
||||||
|
|
||||||
|
PREFIX = /usr/local
|
||||||
|
|
||||||
|
ifeq ($(GOROOT),)
|
||||||
GOBUILD = go build
|
GOBUILD = go build
|
||||||
GOGET = go get -d -v
|
GOGET = go get -d -v
|
||||||
GOGET_UPDATE = go get -d -u -v
|
GOGET_UPDATE = go get -d -u -v
|
||||||
PREFIX=/usr/local
|
else
|
||||||
|
GOBUILD = $(GOROOT)/bin/go build
|
||||||
|
GOGET = $(GOROOT)/bin/go get -d -v
|
||||||
|
GOGET_UPDATE = $(GOROOT)/bin/go get -d -u -v
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(shell uname),Darwin)
|
ifeq ($(shell uname),Darwin)
|
||||||
CONFDIR = /usr/local/etc/dns-over-https
|
CONFDIR = /usr/local/etc/dns-over-https
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user