]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
makefile: do not show warning on non-linux
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 17 May 2019 08:27:12 +0000 (10:27 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 17 May 2019 08:27:51 +0000 (10:27 +0200)
Makefile

index 69a81003ef62452cdf44710532ed8c19d1876a0a..1a154ef4eef426964cd1e9010024f149b6b8a32d 100644 (file)
--- 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' > "$@"