Hi! I am basically new to Tup, and i am finding it somehow hard to grasp on, Can anyone help me create rule to build objects that depends on another locations output? I am using following hierarchy as example:
. $ROOT /A /B targets are as follows: ==================================================== ./Tuprules.tup ROOT = $(TUP_CWD) ./A/Tupfile include_rules : do.c |> gcc -c %f -o %o |> $(ROOT)/B/do.o ./B/Tupfile include_rules : do.o |> ar -rcs libdo.a do.o |> libdo.a ==================================================== the only way its working for me (more or less is) ==================================================== ./A/Tupfile include_rules : do.c |> gcc -c %f -o %o |> $(ROOT)/B/do.o $(ROOT)/<group> ./B/Tupfile include_rules : | $(ROOT)/<group> |> cp do.o do.d |> $(ROOT)/B/do.d ==================================================== but this is preatty weak solution since for more such targets i will need to copy-paste them with exact names, Is there any viable method to describe dependency on another rule, target or goal? -- -- 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.
