summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 10:27:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 10:27:51 +0200
commita6dd28260094f148053239f96a29825c5628db61 (patch)
tree9a8ab6c1cb01d544cfdfdafcc151806dbbb3b9c7 /Makefile
parent7d5f5bcc0dedc8272c8c3cdbc345876f24c4ecfe (diff)
makefile: do not show warning on non-linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 69a8100..1a154ef 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ all: generate-version-and-build
ifeq ($(shell go env GOOS)|$(wildcard .git),linux|)
$(error Do not build this for Linux. Instead use the Linux kernel module. See wireguard.com/install/ for more info.)
-else
+else ifeq ($(shell go env GOOS),linux)
ireallywantobuildon_linux.go:
@printf "WARNING: This software is meant for use on non-Linux\nsystems. For Linux, please use the kernel module\ninstead. See wireguard.com/install/ for more info.\n\n" >&2
@printf 'package main\nconst UseTheKernelModuleInstead = 0xdeadbabe\n' > "$@"