makefile: do not show warning on non-linux
This commit is contained in:
parent
7d5f5bcc0d
commit
a6dd282600
2
Makefile
2
Makefile
|
@ -8,7 +8,7 @@ all: generate-version-and-build
|
||||||
|
|
||||||
ifeq ($(shell go env GOOS)|$(wildcard .git),linux|)
|
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.)
|
$(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:
|
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 "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' > "$@"
|
@printf 'package main\nconst UseTheKernelModuleInstead = 0xdeadbabe\n' > "$@"
|
||||||
|
|
Loading…
Reference in a new issue