fix makefile to make it fail if wget fails.
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 5 May 2007 22:02:07 +0000 (22:02 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 5 May 2007 22:02:07 +0000 (22:02 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1803 839d8a87-29fc-0310-9880-83ba4fa771e5

Makefile

index 3859605..768d9ca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,7 @@ htdocs/css/banana.css:
 
 jquery: htdocs/javascript/jquery.js htdocs/javascript/jquery.autocomplete.js
 htdocs/javascript/jquery.js:
-       wget http://jquery.com/src/jquery-latest.pack.js -O htdocs/javascript/jquery.js -q
+       wget http://jquery.com/src/jquery-latest.pack.js -O $@ -q || ($(RM) $@; exit 1)
 
 ################################################################################