W dniu 2014-08-12 14:40, BogDan Vatra pisze:
Hello,

Is there any way to define targets in tup? I've seen how to use
variants, but they are not enough. I'd like to use the targets for
running slow operations e.g.tests (tup run_qemu_tests), and I really
don't want to run them every time when I run "tup upd".

Cheers,
BogDan.

Tup does not aim to be a tool for running tests and stuff like that, so it's really easier to have a Makefile and there you can have:

all:
        tup

test:
        # do whatever you want...

If you really want to do that with tup you can have sth like that by specifying folder, for example if you have folders src/ and test/ doing "tup src" will only parse and execute Tupfiles under src/, and "tup test" would do only what is needed for Tupfiles under test/. If these depend on src/, this hierarchy would be built too.

It's not so elegant and there are probably many limitations, so it's really better to use the first approach.

Regards,
FCh


--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- You received this message because you are subscribed to the Google Groups "tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to