From: Jason A. Donenfeld Date: Fri, 17 May 2019 08:27:12 +0000 (+0200) Subject: makefile: do not show warning on non-linux X-Git-Tag: 0.0.20190517~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6dd28260094f148053239f96a29825c5628db61;p=thirdparty%2Fwireguard-go.git makefile: do not show warning on non-linux --- 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' > "$@"