X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=b33f885c196a4470e6e7d55c2f905fcbd21a7390;hb=19b45027fd5d1a1b2a8e149d93de693942cfb66c;hp=0c3bbe08c233eab12fe8d6ba82ac03482decd3ce;hpb=3941e808dd2d2b70f191a25b71ae2d6b4debd38d;p=omf.git diff --git a/Makefile b/Makefile index 0c3bbe0..b33f885 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,22 @@ all: $(ALL) .PHONY: all ############################## +#define download_target +#$(1): $($(1)) +#.PHONY: $($(1)) +#$($(1)): +# @if [ ! -e "$($(1))" ] ; then echo "$(WEBFETCH) $($(1)-URL)" ; $(WEBFETCH) $($(1)-URL) ; fi +# @if [ ! -e "$($(1))" ] ; then echo "Could not download source file: $($(1)) does not exist" ; exit 1 ; fi +# @if test "$$$$($(SHA1SUM) $($(1)) | awk '{print $$$$1}')" != "$($(1)-SHA1SUM)" ; then \ +# echo "sha1sum of the downloaded $($(1)) does not match the one from 'Makefile'" ; \ +# echo "Local copy: $$$$($(SHA1SUM) $($(1)))" ; \ +# echo "In Makefile: $($(1)-SHA1SUM)" ; \ +# false ; \ +# else \ +# ls -l $($(1)) ; \ +# fi +#endef + define download_target $(1): $($(1)) .PHONY: $($(1)) @@ -39,7 +55,8 @@ $($(1)): echo "sha1sum of the downloaded $($(1)) does not match the one from 'Makefile'" ; \ echo "Local copy: $$$$($(SHA1SUM) $($(1)))" ; \ echo "In Makefile: $($(1)-SHA1SUM)" ; \ - false ; \ + echo "Proceeding anyway .. " ; \ + ls -l $($(1)) ; \ else \ ls -l $($(1)) ; \ fi