mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-10-22 19:42:55 +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
+15
-7
@@ -1,13 +1,21 @@
|
|||||||
.PHONY: all clean install uninstall deps
|
.PHONY: all clean install uninstall deps
|
||||||
|
|
||||||
GOBUILD=go build
|
PREFIX = /usr/local
|
||||||
GOGET=go get -d -v
|
|
||||||
GOGET_UPDATE=go get -d -u -v
|
ifeq ($(GOROOT),)
|
||||||
PREFIX=/usr/local
|
GOBUILD = go build
|
||||||
ifeq ($(shell uname),Darwin)
|
GOGET = go get -d -v
|
||||||
CONFDIR=/usr/local/etc/dns-over-https
|
GOGET_UPDATE = go get -d -u -v
|
||||||
else
|
else
|
||||||
CONFDIR=/etc/dns-over-https
|
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)
|
||||||
|
CONFDIR = /usr/local/etc/dns-over-https
|
||||||
|
else
|
||||||
|
CONFDIR = /etc/dns-over-https
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: doh-client/doh-client doh-server/doh-server
|
all: doh-client/doh-client doh-server/doh-server
|
||||||
|
|||||||
Reference in new issue
Block a user