From: Joshua Colp Date: Tue, 24 Jul 2007 16:09:20 +0000 (+0000) Subject: Don't download/install the sound packages if already installed. X-Git-Tag: 1.6.0-beta1~3^2~1936 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d44a890c3122f6f2e337f62ba8a77cd19c69db2d;p=thirdparty%2Fasterisk.git Don't download/install the sound packages if already installed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76791 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/sounds/Makefile b/sounds/Makefile index 2ed37c659d..29cdd5b69a 100644 --- a/sounds/Makefile +++ b/sounds/Makefile @@ -130,13 +130,13 @@ $(MOH_DIR)/.asterisk-moh-%: have_download touch $@ asterisk-core-%.tar.gz: have_download - @if test ! -f $@ ;then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi + @if test ! -f $@ && test ! -f $(SOUNDS_DIR)/.$(subst .tar.gz,,$@) ; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi asterisk-extra-%.tar.gz: have_download - @if test ! -f $@ ;then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi + @if test ! -f $@ && test ! -f $(SOUNDS_DIR)/.$(subst .tar.gz,,$@) ; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi asterisk-moh-%.tar.gz: have_download - @if test ! -f $@ ;then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi + @if test ! -f $@ && test ! -f $(MOH_DIR)/.$(subst .tar.gz,,$@) ; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi dist-clean: rm -f *.tar.gz