Add print_mkvars make target for debug.
This commit is contained in:
parent
e9f7af26e6
commit
7638dd5a18
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.73 2009/12/04 12:43:56 apb Exp $
|
||||
# $NetBSD: Makefile,v 1.74 2009/12/10 05:15:28 uebayasi Exp $
|
||||
|
||||
# The `all' target must appear before bsd.own.mk is pulled in.
|
||||
all:
|
||||
@ -67,6 +67,9 @@ print_object_fmt: .PHONY
|
||||
print_toolchain_missing: .PHONY
|
||||
@echo "${TOOLCHAIN_MISSING}"
|
||||
|
||||
print_mkvars: .PHONY
|
||||
@env SETS_SUBR_DEBUG=dumpmkvars sh sets.subr
|
||||
|
||||
#
|
||||
# METALOG MANIPULATION TARGETS
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: sets.subr,v 1.104 2009/12/10 05:02:48 uebayasi Exp $
|
||||
# $NetBSD: sets.subr,v 1.105 2009/12/10 05:15:28 uebayasi Exp $
|
||||
#
|
||||
|
||||
#
|
||||
@ -168,7 +168,6 @@ all:
|
||||
|
||||
EOMAKE
|
||||
); do
|
||||
# echo 1>&2 "DEBUG: read $x"
|
||||
eval $x
|
||||
done
|
||||
|
||||
@ -176,6 +175,15 @@ IFS=$oIFS
|
||||
|
||||
MKVARS="$MKEXTRAVARS $_MKVARS_yes $_MKVARS_no"
|
||||
|
||||
if [ "$SETS_SUBR_DEBUG" = "dumpmkvars" ]; then
|
||||
for v in $MKVARS; do
|
||||
eval echo $v=\$$v
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#####
|
||||
|
||||
setsdir=${0%/*}
|
||||
obsolete=0
|
||||
module=yes
|
||||
@ -219,7 +227,7 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g"
|
||||
# In each file, a record consists of a path and a System Package name,
|
||||
# separated by whitespace. E.g.,
|
||||
#
|
||||
# # $NetBSD: sets.subr,v 1.104 2009/12/10 05:02:48 uebayasi Exp $
|
||||
# # $NetBSD: sets.subr,v 1.105 2009/12/10 05:15:28 uebayasi Exp $
|
||||
# . base-sys-root [keyword[,...]]
|
||||
# ./altroot base-sys-root
|
||||
# ./bin base-sys-root
|
||||
|
Loading…
Reference in New Issue
Block a user