Hello Mac!

If you want to use <groups>, you have to remember that they have a path. So 
you usually use them like this:

1. in top-level Tuprules.lua you add:

TOP = tup.getcwd()

2. In any file you add files to group using sth like this:

local outputs = {"some_output_file", TOP .. "/<some_group>"}
tup.rule(inputs, "command %f %o", outputs)

3. Then in any file you can use this group like this:

tup.rule(TOP .. "/<some_group>", "command %<some_group>", outputs)

This is not the one-and-only way to use <groups>, but this usually works 
pretty well. For example instead of using TOP folder to "anchor" the group, 
you could use any folder you like, as long as you reference it correctly in 
the rules that add files to the group and when you want to use the group as 
input.

Let me know if you encounter any problems with <groups> - I use them since 
they were introduced in tup (;

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