mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 09:15:14 +01:00
Discourage building for Linux
This commit is contained in:
parent
75cdc5986a
commit
fa003b6933
6
Makefile
6
Makefile
@ -2,6 +2,12 @@ PREFIX ?= /usr
|
|||||||
DESTDIR ?=
|
DESTDIR ?=
|
||||||
BINDIR ?= $(PREFIX)/bin
|
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
|
all: wireguard-go
|
||||||
|
|
||||||
wireguard-go: $(wildcard *.go) $(wildcard */*.go)
|
wireguard-go: $(wildcard *.go) $(wildcard */*.go)
|
||||||
|
Loading…
Reference in New Issue
Block a user