Project

General

Profile

« Previous | Next » 

Revision 9354

lib/sh/make.sh: set_make_vars: usage: added "use $target" to indicate that vars are made available by this alias

View differences:

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