Revision 9059
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/make.sh | ||
---|---|---|
15 | 15 |
|
16 | 16 |
# usage: set_make_vars; check_target_exists |
17 | 17 |
alias check_target_exists='remaking || ! test -e "$target" || return 0' |
18 |
alias check_fake_target_exists='remaking || declare if_not_exists=1' |
|
19 |
# defer check until to_file |
|
18 | 20 |
|
19 | 21 |
# usage: set_make_vars; to_target cmd... |
20 | 22 |
alias to_target='stdout="$target" to_file ' # last space alias-expands next word |
Also available in: Unified diff
lib/sh/make.sh: added check_fake_target_exists (analogous to check_target_exists), which defers the target existence check until to_file (when the target name will presumably have been resolved to a path)