WGETOPT= -m -np -k -N -t 3 -T 30 --progress=bar:force URLS1=\ ftp://ftp.fu-berlin.de/pub/misc/movies/database/ \ URLS2=\ http://developer.apple.com/ \ all: @echo 'make update # update the mirrors' @echo "MIRRORS=$(MIRRORS)" update:wget @echo "Last Update: $(date)" > LAST-UPDATE wget: ( $(MAKE) $(MFLAGS) wget1 & $(MAKE) $(MFLAGS) wget2 & wait ; wait ) wget1: @for url in $(URLS1) ; do \ echo '==== ' ; echo "==== $$url" ; echo '==== ' ;\ wget $(WGETOPT) "$$url" ;\ done wget2: @for url in $(URLS2) ; do \ echo '==== ' ; echo "==== $$url" ; echo '==== ' ;\ wget $(WGETOPT) "$$url" ;\ done clean: rm -f *~