Project

General

Profile

« Previous | Next » 

Revision 9679

lib/sh/make.sh: added self_make(), which progagates the $remake flag (normally it is not progagated, because prerequisites should not also be remade)

View differences:

lib/sh/make.sh
19 19
# cmd line usage: [remake=1] func
20 20
alias remaking='test "$_remake"'
21 21

  
22
# usage: self_make overridden_target... # progagates $remake
23
function self_make() { remake="$_remake" "$@"; }
24
alias self_make='"self_make" ' # last space alias-expands next word
25

  
22 26
# usage: set_make_vars; check_target_exists
23 27
alias check_target_exists='remaking || require_not_exists "$target" || return 0'
24 28
alias check_fake_target_exists='remaking || declare if_not_exists=1'

Also available in: Unified diff