X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=cb9617c2a7724bb6928bc3d8ea0f8354acfd646f;hb=7b60d185ba89433f7dea2f3469098b5b692911f1;hp=221dd517f0b42602f8b5c8743ca111ae11c75d2c;hpb=675a6aa7cf0969f50da69432b708298e85682c19;p=omf.git diff --git a/Makefile b/Makefile index 221dd51..cb9617c 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ 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 @@ -65,6 +66,14 @@ clean: 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)