diff options
-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) |