wg: 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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Christian Hesse 2017-01-04 21:14:16 +01:00 committed by Jason A. Donenfeld
parent 6b940830e9
commit d2f244b136

View file

@ -12,12 +12,12 @@ WITH_WGQUICK ?=
WITH_SYSTEMDUNITS ?= WITH_SYSTEMDUNITS ?=
ifeq ($(WITH_BASHCOMPLETION),) ifeq ($(WITH_BASHCOMPLETION),)
ifneq ($(strip $(wildcard $(DESTDIR)$(BASHCOMPDIR))),) ifneq ($(strip $(wildcard $(BASHCOMPDIR))),)
WITH_BASHCOMPLETION := yes WITH_BASHCOMPLETION := yes
endif endif
endif endif
ifeq ($(WITH_WGQUICK),) ifeq ($(WITH_WGQUICK),)
ifneq ($(strip $(wildcard $(DESTDIR)$(BINDIR)/bash)),) ifneq ($(strip $(wildcard $(BINDIR)/bash)),)
WITH_WGQUICK := yes WITH_WGQUICK := yes
endif endif
ifneq ($(strip $(wildcard $(DESTDIR)/bin/bash)),) ifneq ($(strip $(wildcard $(DESTDIR)/bin/bash)),)
@ -25,7 +25,7 @@ WITH_WGQUICK := yes
endif endif
endif endif
ifeq ($(WITH_SYSTEMDUNITS),) ifeq ($(WITH_SYSTEMDUNITS),)
ifneq ($(strip $(wildcard $(DESTDIR)$(SYSTEMDUNITDIR))),) ifneq ($(strip $(wildcard $(SYSTEMDUNITDIR))),)
WITH_SYSTEMDUNITS := yes WITH_SYSTEMDUNITS := yes
endif endif
endif endif