From a6dd28260094f148053239f96a29825c5628db61 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 17 May 2019 10:27:12 +0200 Subject: [PATCH] makefile: do not show warning on non-linux --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' > "$@"