diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-25 16:54:41 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-25 16:54:41 -0400 |
commit | 0d704c52842acc805793bb31d8a3aaeccf72d349 (patch) | |
tree | 1546414c539e04f632b02feddbc52b611e5d9ab5 | |
parent | d90ded5641d3964e34fca8bb093a83fb64658ee2 (diff) |
Makefile: cut out the middle man (package) in the magic foreach loop
-rw-r--r-- | Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -118,14 +118,12 @@ build/extract/tar/%: # magic foreach loop ( cd '$(_tar_basedir)' && $(TAR) -m $(if $(filter $(_tar_basedir),$(tarbombs)),,--strip-components 1) -xf '$(top)/$<' ); \ } || { $(RM) -r '$(_tar_basedir)'; $(FAIL); } -# magic foreach loop -$(foreach package,$(packages), \ - $(if $(call specs_for,git tar,$($(package))), \ - $(eval \ - build/extract/$(call name2,file,$(package)): \ - build/download/$(call name2,base,$(package)) \ - ) \ - ) \ +# magic foreach loop (git, tar) +$(foreach spec,$(call specs_for,git tar), \ + $(eval \ + build/extract/$(call spec2,file,$(spec)): \ + build/download/$(call spec2,base,$(spec)) \ + ) \ ) # place (patch) ################################################################ |