diff options
author | Christian Hesse <mail@eworm.de> | 2017-01-04 21:14:16 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-05 02:30:20 +0100 |
commit | 6c6041642e95737fd279c66a4ccbad8ee148bd40 (patch) | |
tree | 24f29c1744ef8ec3530643db9420bb7a169ae0dc /src | |
parent | tools: add systemd unit and auto-detection (diff) | |
download | wireguard-monolithic-historical-6c6041642e95737fd279c66a4ccbad8ee148bd40.tar.xz wireguard-monolithic-historical-6c6041642e95737fd279c66a4ccbad8ee148bd40.zip |
tools: remove DESTDIR for autodetection
DESTDIR is always empty, no need to check anything there. Check the main
system instead.
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/Makefile b/src/tools/Makefile index fe483b9..8160cc9 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -12,12 +12,12 @@ WITH_WGQUICK ?= WITH_SYSTEMDUNITS ?= ifeq ($(WITH_BASHCOMPLETION),) -ifneq ($(strip $(wildcard $(DESTDIR)$(BASHCOMPDIR))),) +ifneq ($(strip $(wildcard $(BASHCOMPDIR))),) WITH_BASHCOMPLETION := yes endif endif ifeq ($(WITH_WGQUICK),) -ifneq ($(strip $(wildcard $(DESTDIR)$(BINDIR)/bash)),) +ifneq ($(strip $(wildcard $(BINDIR)/bash)),) WITH_WGQUICK := yes endif ifneq ($(strip $(wildcard $(DESTDIR)/bin/bash)),) @@ -25,7 +25,7 @@ WITH_WGQUICK := yes endif endif ifeq ($(WITH_SYSTEMDUNITS),) -ifneq ($(strip $(wildcard $(DESTDIR)$(SYSTEMDUNITDIR))),) +ifneq ($(strip $(wildcard $(SYSTEMDUNITDIR))),) WITH_SYSTEMDUNITS := yes endif endif |