Revision 8644
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.run | ||
---|---|---|
84 | 84 |
{ |
85 | 85 |
local self="$(readlink -f "${BASH_SOURCE[1]}")" |
86 | 86 |
local self_dir="$(dirname "$self")" |
87 |
export self_dir |
|
87 | 88 |
|
88 | 89 |
echo_func "$@" |
89 | 90 |
(cat |
... | ... | |
93 | 94 |
.SECONDARY: # don't automatically delete intermediate files |
94 | 95 |
.DELETE_ON_ERROR: # delete target if recipe fails |
95 | 96 |
EOF |
96 |
)|echo_stdin|make --makefile=/dev/stdin self_dir="$self_dir" "$@"
|
|
97 |
)|echo_stdin|make --makefile=/dev/stdin "$@" |
|
97 | 98 |
} |
Also available in: Unified diff
lib/util.run: inline_make (): provide self_dir to make as env var instead of as make var, to avoid specifying every make var both as a local var and as a make var in the make command