Project

General

Profile

« Previous | Next » 

Revision 8639

lib/util.run: inline_make (): set $self_dir as a local var before passing it to make, to avoid clutter in the command that invokes make

View differences:

lib/util.run
72 72
fi ##
73 73
inline_make ()
74 74
{
75
	local self_dir="$(dirname "$(readlink -f "${BASH_SOURCE[1]}")")"
75 76
	echo_func "$@"
76 77
	(cat
77 78
	cat <<EOF
......
80 81
.SECONDARY: # don't automatically delete intermediate files
81 82
.DELETE_ON_ERROR: # delete target if recipe fails
82 83
EOF
83
	)|echo_stdin|make --makefile=/dev/stdin \
84
self_dir="$(dirname "$(readlink -f "${BASH_SOURCE[1]}")")" "$@"
84
	)|echo_stdin|make --makefile=/dev/stdin self_dir="$self_dir" "$@"
85 85
}

Also available in: Unified diff