My brain might be fried right now (have been hacking on this Shakefile for 3 days straight), but I just can't figure out how to express a "one-way" dependency in Shake?
I am building (generating) hundreds of HTML files, and for them to work properly, they need one common CSS file to be generated. If I say something like...
"**.rst" %> \out -> do
need [cssFile, templateFile]
-- compile RST => HTML
... it results in ALL HTML files being re-built if the common CSS file changes!
How do I express the following in shake:
- if
xis built, make sureyis also built - however, if
ychanges,xdoes NOT need to be re-built.
You might be looking for
orderOnly, from the docs:It doesn't perfectly match what you are after (you don't really need it to be built before the rule continues), but it should be close enough for what you want.