NetBSD/distrib/sets/mkvars.mk
uebayasi e08ad0e79f Move make variable extraction & conversion logic from here-documented make
-f- command to an isolated makefile.  The list of non-_MKVARS.* variables
are concentrated there.

No functional changes.
2009-12-10 15:51:24 +00:00

62 lines
848 B
Makefile

# $NetBSD: mkvars.mk,v 1.1 2009/12/10 15:51:24 uebayasi Exp $
MKEXTRAVARS= \
MACHINE \
MACHINE_ARCH \
MACHINE_CPU \
HAVE_BINUTILS \
HAVE_GCC \
HAVE_GDB \
OBJECT_FMT \
TOOLCHAIN_MISSING \
EXTSRCS \
MKMANZ \
MKBFD \
MKCOMPAT \
MKDYNAMICROOT \
MKMANPAGES \
MKXORG \
X11FLAVOR \
USE_INET6 \
USE_KERBEROS \
USE_LDAP \
USE_YP \
NETBSDSRCDIR \
MAKEVERBOSE
#####
.include <bsd.own.mk>
.if (${MKMAN} == "no" || empty(MANINSTALL:Mmaninstall))
MKMANPAGES=no
.else
MKMANPAGES=yes
.endif
.if ${MKX11} != "no"
. if ${X11FLAVOUR} == "Xorg"
MKXORG:=yes
MKX11:=no
. else
MKXORG:=no
. endif
.endif
#####
mkvars: mkvarsyesno mkextravars .PHONY
mkvarsyesno: .PHONY
.for i in ${_MKVARS.yes}
@echo $i="${$i}"
.endfor
.for i in ${_MKVARS.no}
@echo $i="${$i}"
.endfor
mkextravars: .PHONY
.for i in ${MKEXTRAVARS}
@echo $i="${$i}"
.endfor