From: Mark Wooding Date: Fri, 20 Sep 2019 10:11:38 +0000 (+0100) Subject: Makefile: Don't commit to `PROXY' before we know `$(APTCONF)'. X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-chroot/commitdiff_plain/4d529157c24de55bda6fa53ddaf85edd9ed87327 Makefile: Don't commit to `PROXY' before we know `$(APTCONF)'. --- diff --git a/Makefile b/Makefile index a2ba217..3a3d48a 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ APTCONF = $(notdir $(wildcard etc/apt-conf.d/[0-9]*[!~])) ## Proxy setting. CONFIG_VARS += PROXY -PROXY := $(shell \ +PROXY = $(shell \ eval $$(apt-config $(foreach a,$(APTCONF),-cetc/apt-conf.d/$a) \ shell proxy Acquire::http::proxy); \ case $${proxy+t} in (t) echo "$$proxy" ;; (*) echo nil ;; esac)