diff --git a/Makefile b/Makefile index 50594e213f..6a15b7e4c6 100644 --- a/Makefile +++ b/Makefile @@ -87,6 +87,7 @@ export AWK export GREP export ID export MD5 +export WGET_EXTRA_ARGS # even though we could use '-include makeopts' here, use a wildcard # lookup anyway, so that make won't try to build makeopts if it doesn't diff --git a/sounds/Makefile b/sounds/Makefile index 1e1c2ae9b8..fe362d4a52 100644 --- a/sounds/Makefile +++ b/sounds/Makefile @@ -55,8 +55,8 @@ MM:=$(subst -SLN16,-sln16,$(MM)) MOH:=$(MM:MOH-%=asterisk-moh-%.tar.gz) MOH_TAGS:=$(MM:MOH-%=$(MOH_DIR)/.asterisk-moh-%) # If "fetch" is used, --continue is not a valid option. -ifeq ($(WGET),wget) -WGET_ARGS:=--continue +ifneq ($(findstring wget,$(WGET)),) +WGET_ARGS:=--continue $(WGET_EXTRA_ARGS) endif all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)