WEBFETCH := curl -H Pragma: -O -R -S --fail --show-error
SHA1SUM := sha1sum
-REPO := http://pkg.mytestbed.net/omf-5.3-federation-v1.1/yum/base/8/i386/
+#REPO := http://pkg.mytestbed.net/omf-5.3-federation-v1.1/yum/base/8/i386/
+REPO := http://mirror.onelab.eu/third-party/omf-5.3-federation-v1.1
ALL += omf-resctl
omf-resctl-URL := $(REPO)/omf-resctl-5.3-1ubuntu2-2.noarch.rpm
rm -f $(CLEAN)
.PHONY: clean
+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
+
#################### convenience, for debugging only
# make +foo : prints the value of $(foo)
# make ++foo : idem but verbose, i.e. foo=$(foo)