Is it possible to reference an in-tree executable in a macro? I couldn't find anything like it in the docs.
I suppose it would need something like a $(TUP_TOP) or $(TUP_ROOT)? Stephen. diff -Naur a/bin/gen b/bin/gen --- a/bin/gen 1970-01-01 01:00:00.000000000 +0100 +++ b/bin/gen 2014-04-01 14:33:42.621400790 +0100 @@ -0,0 +1,4 @@ +#! /bin/sh + +echo "//$*" + diff -Naur a/src/Tupfile b/src/Tupfile --- a/src/Tupfile 1970-01-01 01:00:00.000000000 +0100 +++ b/src/Tupfile 2014-04-02 13:50:36.684390281 +0100 @@ -0,0 +1,3 @@ +include_rules + +: foo.h |> !gen |> foo.gen diff -Naur a/Tuprules.tup b/Tuprules.tup --- a/Tuprules.tup 1970-01-01 01:00:00.000000000 +0100 +++ b/Tuprules.tup 2014-04-02 13:51:29.160388927 +0100 @@ -0,0 +1,4 @@ + +#!gen = | $(TUP_CWD)/bin/gen |> $(TUP_CWD)/bin/gen %f > %o |> +#!gen = | &bin/gen |> &bin/gen %f > %o |> +!gen = | bin/gen |> bin/gen %f > %o |> -- -- 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.
