Revision 9354
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/make.sh | ||
---|---|---|
3 | 3 |
|
4 | 4 |
if self_not_included; then |
5 | 5 |
|
6 |
# usage: target_filename/command() { echo_func; set_make_vars; ...; } |
|
6 |
# usage: target_filename/command() { echo_func; set_make_vars; use $target...; }
|
|
7 | 7 |
alias set_make_vars="$(cat <<'EOF' |
8 | 8 |
local command="${FUNCNAME##*/}"; echo_vars command |
9 | 9 |
local target_filename="${FUNCNAME%/*}"; echo_vars target_filename |
Also available in: Unified diff
lib/sh/make.sh: set_make_vars: usage: added "use $target" to indicate that vars are made available by this alias