Lines Matching +full:sub +full:- +full:space
3 # SPDX-License-Identifier: BSD-2-Clause
8 # find *bin etc lib* -name Makefile |
9 # xargs grep '^PACKAGE[[:space:]]*=' )
13 # usr.bin/ofed/libibverbs/Makefile:PACKAGE=FreeBSD-rdma
25 # Makefile.depend files throughout the tree up-to-date.
32 # SUBDIR.${MK_OPT}+= sub
35 # to a Makefile.depend.options file in targets/packages/sub/
41 # SUBDIR+= sub
53 -v) SKIP_LOG=:; shift;;
62 SRCTOP=${SRCTOP:-$(realpath $Mydir/../../..)}
64 DebugOn bootstrap-packages
66 PACKAGES=${PACKAGES:-$(realpath $Mydir/../..)}
83 mkdir -p ${depfile%/*}
103 mkdir -p ${ofile%/*}
114 test -s $1 || return
117 .include <dirdeps-options.mk>
130 sub="`no_plus $2`"
132 egrep "$@" "^[^#].*[[:space:]]$sub([[:space:]]|\$)" $mf |
134 sed -n 's,^MK_\([^}]*\).*,\1,p' |
139 sort -t= -k2 "$@" | sed 's,/Makefile:PACKAGE=, ,' |
151 egrep -q "^[^#].*[[:space:]]`no_plus $bname`([[:space:]]|\$)" $pmf 2> /dev/null || continue
154 *lib/*) sub=${reldir#*lib/};;
155 *bin/*) sub=${reldir#*bin/};;
156 *libexec/*) sub=${reldir#*libexec/};;
157 *) opt= sub=;;
159 if [ -n "$sub" ]; then
160 smf=${SRCTOP}/${reldir%/$sub}/Makefile
162 sub=${sub%%/*}
163 # SUBDIR.${MK_OPT}+= sub
164 opt=`find_opt $smf $sub`
166 # SUBDIR+= sub
167 opt=${opt:-`find_opt $smf $sub -B2`}
170 */tests|*/tests/*) opt=${opt:-TESTS};;
179 lib?{LIB*) package=`echo lib${bname#lib} | tr 'A-Z' 'a-z'`;;
182 test -z "$lpackage" || end_depend $ddeps
186 rm -f $odeps
191 if [ -n "$opt" ]; then
192 [ -s $odeps ] || start_options $odeps