.if !defined(MASTER_SITE_OVERRIDE)
do-fetch:
	@if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
	@(curdir=`pwd`; cd ${DISTDIR}; \
	  for file in ${DISTFILES}; do \
		if [ ! -f $$file ]; then \
			echo ">> $$file doesn't seem to exist on this system."; \
  			echo ">> Attempting to fetch it from a master site."; \
			(cd $$curdir; if make $$file; then \
				echo ">> $$file Fetched!" ; \
			else \
  				echo ">> Couldn't fetch it - please try to retreive this";\
  				echo ">> port manually into ${DISTDIR} and try again."; \
				exit 1;\
			fi); \
		fi; \
	done)
.endif
