+repobase:=$(subst http://pkg.mytestbed.net/,,$(subst /yum/base/8/i386/,,$(REPO)))
+# this echoes a script that can be ran on the mirror
+mirror:
+ @( echo mkdir -p $(repobase); echo cd $(repobase) ; \
+ $(foreach target,$(ALL), echo curl -O $(REPO)/$($(target)) ; ) )
+
+.PHONY: mirror
+