[asterisk-commits] file: trunk r76791 - /trunk/sounds/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 24 11:09:20 CDT 2007


Author: file
Date: Tue Jul 24 11:09:20 2007
New Revision: 76791

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76791
Log:
Don't download/install the sound packages if already installed.

Modified:
    trunk/sounds/Makefile

Modified: trunk/sounds/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/sounds/Makefile?view=diff&rev=76791&r1=76790&r2=76791
==============================================================================
--- trunk/sounds/Makefile (original)
+++ trunk/sounds/Makefile Tue Jul 24 11:09:20 2007
@@ -130,13 +130,13 @@
 	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




More information about the asterisk-commits mailing list