makefile: do not show warning on non-linux

This commit is contained in:
Jason A. Donenfeld 2019-05-17 10:27:12 +02:00
parent 7d5f5bcc0d
commit a6dd282600
1 changed files with 1 additions and 1 deletions

View File

@ -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' > "$@"