From fa003b6933b07bdf87a541114ba8fe694329e2b2 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 20 May 2018 03:18:47 +0200 Subject: Discourage building for Linux --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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) -- cgit v1.2.3