From: Jason A. Donenfeld Date: Sun, 20 May 2018 01:18:47 +0000 (+0200) Subject: Discourage building for Linux X-Git-Tag: 0.0.20180524~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa003b6933b07bdf87a541114ba8fe694329e2b2;p=thirdparty%2Fwireguard-go.git Discourage building for Linux --- diff --git a/Makefile b/Makefile index 7941326..e1c53c5 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,12 @@ PREFIX ?= /usr DESTDIR ?= BINDIR ?= $(PREFIX)/bin +ifeq ($(shell go env GOOS),linux) +ifeq ($(wildcard .git),) +$(error Do not build this for Linux. Instead use the Linux kernel module. See wireguard.com/install/ for more info.) +endif +endif + all: wireguard-go wireguard-go: $(wildcard *.go) $(wildcard */*.go)