Mark a file up to date

18 views
Skip to first unread message

ryan....@gmail.com

unread,
Sep 1, 2016, 3:29:07 AM9/1/16
to Shake build system
Is there a way to do this in Shake? Some of my build steps take hours and I'd like to copy some of the results to another machine and not have them rebuild.

Ryan

Neil Mitchell

unread,
Sep 6, 2016, 5:04:08 PM9/6/16
to Ryan Eckbo, Shake build system
Hi Ryan,

Sorry for the delay in replying - I've just started a new job which is
keeping me very busy!

There are a few options, depending on exactly what you want. Are you
also copying the Shake database over? Have you previously built these
files on that machine? Will the dependencies have changed from any
previous build?

The features that might help:

* If it's just modification times going awry, then use a different
Change mode which includes a hash.

* If the thing you want to skip is a command, pass --no-commands to
skip running commands, and rebuild whatever you need to end up in a
consistent state.

* If you want something make-like, try passing --touch.

* With shake HEAD, I've overhauled the make clean pieces, moving away
from make's --touch and moving to specific --skip/--skip-always flags.
It's not very well tested, so I don't really recommend you try it, but
it's the future. If none of the other things are sufficient, it might
be worth a go.

Thanks, Neil

Ryan

unread,
Sep 7, 2016, 7:23:12 PM9/7/16
to Neil Mitchell, Shake build system
Hi Neil,

Thanks for the helpful reply as usual. I should now be able to figure
out
what best suits my use case.

Hope you're enjoying the new job.

Cheers,
Ryan
Reply all
Reply to author
Forward
0 new messages