diff --git a/Makefile b/Makefile index 213cbc0..beb88b5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: all clean install uninstall GOBUILD=go build +GOGET=go get -d -v . PREFIX=/usr/local all: doh-client/doh-client doh-server/doh-server @@ -18,7 +19,7 @@ uninstall: $(MAKE) -C systemd uninstall "DESTDIR=$(DESTDIR)" "PREFIX=$(PREFIX)" doh-client/doh-client: doh-client/client.go doh-client/main.go json-dns/error.go json-dns/globalip.go json-dns/marshal.go json-dns/response.go json-dns/unmarshal.go - cd doh-client && $(GOBUILD) + cd doh-client && $(GOGET) && $(GOBUILD) doh-server/doh-server: doh-server/main.go doh-server/server.go json-dns/error.go json-dns/globalip.go json-dns/marshal.go json-dns/response.go json-dns/unmarshal.go - cd doh-server && $(GOBUILD) + cd doh-server && $(GOGET) && $(GOBUILD) diff --git a/Readme.md b/Readme.md index 625a1dd..971126c 100644 --- a/Readme.md +++ b/Readme.md @@ -7,7 +7,12 @@ Client and server software to query DNS over HTTPS protocol Install [Go](https://golang.org), at least version 1.8. -Type: +First create an empty directory, used for `$GOPATH`: + + mkdir ~/gopath + export GOPATH=~/gopath + +To build the program, type: make