I think I got it, I need to do a patsubst
with the names of the .url
files to create the .js
and use the result as the dependency to a phoney rule that I can then use as dependency for the r.js
step.
DOWNLOADED_LIBS+=$(patsubst jslibsurls/%.url,static/js/lib/%.js,$(wildcard jslibsurls/*.url))
download-libs: $(DOWNLOADED_LIBS)
#this downloads a .js in static/js/lib/ file for each .url file in jslibsurls/
static/js/lib/%.js: jslibsurls/%.url
curl -L -s -o $@ `cat $<`
.PHONY: download-libs