diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 03:18:47 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 03:19:03 +0200 |
commit | fa003b6933b07bdf87a541114ba8fe694329e2b2 (patch) | |
tree | 7446ec4b69ded1c2214fed008810f7fff543c735 /Makefile | |
parent | 75cdc5986a7e34f50a48c0b9935ec15b7c5012ff (diff) |
Discourage building for Linux
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |