summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-20 03:18:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-20 03:19:03 +0200
commitfa003b6933b07bdf87a541114ba8fe694329e2b2 (patch)
tree7446ec4b69ded1c2214fed008810f7fff543c735 /Makefile
parent75cdc5986a7e34f50a48c0b9935ec15b7c5012ff (diff)
Discourage building for Linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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)