I have a Makefile which takes care of downloading a few javascript files needed as a prerequisite for r.js
For each of them I've created a .url
file which contains the url where the .js
file can be downloaded, and set up a pattern rule like this:
static/js/lib/%.js: jslibsurls/%.url
curl -L -s -o $@ `cat $<`
but it only downloads a .js
file if it is an explicit dependency somewhere in the Makefile...
Is there any way to make the pattern rule to be executed if there's a dependency matching it even if the target is not used yet (they will be used in wildcard once they are created)?