mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-18 06:56:54 +02:00
Discourage building for Linux
This commit is contained in:
parent
75cdc5986a
commit
fa003b6933
1 changed files with 6 additions and 0 deletions
6
Makefile
6
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue