aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2019-03-25 00:46:46 +0200
committerMarin Ivanov <[email protected]>2019-03-25 00:53:11 +0200
commitd8ca90a99e8fed561db245f3e972d893334604f8 (patch)
treefc26591d6727a71d29d42b8ae064b3e7982da8a6 /Makefile
parent47971bdbe2ad58ac6749da632febc24c4b12da43 (diff)
Allow to drop privileges my changing uid/gid
This feature is only available for unix OSes and allow to setuid and setgid after creating a listening socket.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 906b4bc..3956af1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,11 @@
-linux-amd64: build/linux-amd64
-windows-amd64: build/windows-amd64.exe
+SRC = $(wildcard *.go)
-build/linux-amd64: $(SRC)
+linux-amd64: build/tarpit-linux-amd64
+
+windows-amd64: build/tarpit-windows-amd64.exe
+
+build/tarpit-linux-amd64: $(SRC)
GOOS=linux GOARCH=amd64 go build -o "$@"
-build/windows-amd64.exe: $(SRC)
+build/tarpit-windows-amd64.exe: $(SRC)
GOOS=windows GOARCH=amd64 go build -o "$@"