diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-24 16:09:20 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-24 16:09:20 +0000 |
commit | 881edd869ca3415f5cf4ffb8d345e0ee475af9e1 (patch) | |
tree | ae340710ae4b2e1268dcc6da861e79a189f58bfd /sounds/Makefile | |
parent | 59a670d9231344e047f0958556f0a44ae15920fd (diff) |
Don't download/install the sound packages if already installed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'sounds/Makefile')
-rw-r--r-- | sounds/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sounds/Makefile b/sounds/Makefile index 2ed37c659..29cdd5b69 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 |