Merge pull request #1756 from LuaAndC/wget-var

factor out var WGET_TOOL from WGET
This commit is contained in:
Boris Nagaev 2017-05-18 23:25:29 +00:00 committed by GitHub
commit ddc72b384c
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ PATCH := $(shell gpatch --help >/dev/null 2>&1 && echo g)patch
SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed
SORT := $(shell gsort --help >/dev/null 2>&1 && echo g)sort
DEFAULT_UA := $(shell wget --version | $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p')
WGET = wget --user-agent='$(or $($(1)_UA),$(DEFAULT_UA))'
WGET_TOOL = wget
WGET = $(WGET_TOOL) --user-agent='$(or $($(1)_UA),$(DEFAULT_UA))'
REQUIREMENTS := autoconf automake autopoint bash bison bzip2 flex \
$(BUILD_CC) $(BUILD_CXX) gperf intltoolize $(LIBTOOL) \