mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-10-22 17:32:20 +00:00
Update
This commit is contained in:
1 parent
17c9ef0665
commit
1f8b1ea7ad
10 files changed
+1092
No files matched your search
@@ -0,0 +1,24 @@
|
||||
.PHONY: all clean install uninstall
|
||||
|
||||
GOBUILD=go build
|
||||
PREFIX=/usr/local
|
||||
|
||||
all: doh-client/doh-client doh-server/doh-server
|
||||
|
||||
clean:
|
||||
rm -f doh-client/doh-client doh-server/doh-server
|
||||
|
||||
install: doh-client/doh-client doh-server/doh-server
|
||||
install -Dm0755 doh-client/doh-client $(PREFIX)/bin/doh-client
|
||||
install -Dm0755 doh-server/doh-server $(PREFIX)/bin/doh-server
|
||||
setcap cap_net_bind_service=+ep $(PREFIX)/bin/doh-client
|
||||
setcap cap_net_bind_service=+ep $(PREFIX)/bin/doh-server
|
||||
|
||||
uninstall:
|
||||
rm -f $(PREFIX)/bin/doh-client $(PREFIX)/bin/doh-server
|
||||
|
||||
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)
|
||||
|
||||
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)
|
||||
Reference in new issue
Block a user