head	1.23;
access;
symbols
	netbsd-11-0-RC4:1.23
	netbsd-11-0-RC3:1.23
	netbsd-11-0-RC2:1.23
	netbsd-11-0-RC1:1.23
	perseant-exfatfs-base-20250801:1.23
	netbsd-11:1.23.0.62
	netbsd-11-base:1.23
	netbsd-10-1-RELEASE:1.23
	perseant-exfatfs-base-20240630:1.23
	perseant-exfatfs:1.23.0.60
	perseant-exfatfs-base:1.23
	netbsd-8-3-RELEASE:1.23
	netbsd-9-4-RELEASE:1.23
	netbsd-10-0-RELEASE:1.23
	netbsd-10-0-RC6:1.23
	netbsd-10-0-RC5:1.23
	netbsd-10-0-RC4:1.23
	netbsd-10-0-RC3:1.23
	netbsd-10-0-RC2:1.23
	netbsd-10-0-RC1:1.23
	netbsd-10:1.23.0.58
	netbsd-10-base:1.23
	netbsd-9-3-RELEASE:1.23
	cjep_sun2x-base1:1.23
	cjep_sun2x:1.23.0.56
	cjep_sun2x-base:1.23
	cjep_staticlib_x-base1:1.23
	netbsd-9-2-RELEASE:1.23
	cjep_staticlib_x:1.23.0.54
	cjep_staticlib_x-base:1.23
	netbsd-9-1-RELEASE:1.23
	phil-wifi-20200421:1.23
	phil-wifi-20200411:1.23
	is-mlppp:1.23.0.52
	is-mlppp-base:1.23
	phil-wifi-20200406:1.23
	netbsd-8-2-RELEASE:1.23
	netbsd-9-0-RELEASE:1.23
	netbsd-9-0-RC2:1.23
	netbsd-9-0-RC1:1.23
	phil-wifi-20191119:1.23
	netbsd-9:1.23.0.50
	netbsd-9-base:1.23
	phil-wifi-20190609:1.23
	netbsd-8-1-RELEASE:1.23
	netbsd-8-1-RC1:1.23
	pgoyette-compat-merge-20190127:1.23
	pgoyette-compat-20190127:1.23
	pgoyette-compat-20190118:1.23
	pgoyette-compat-1226:1.23
	pgoyette-compat-1126:1.23
	pgoyette-compat-1020:1.23
	pgoyette-compat-0930:1.23
	pgoyette-compat-0906:1.23
	netbsd-7-2-RELEASE:1.23
	pgoyette-compat-0728:1.23
	netbsd-8-0-RELEASE:1.23
	phil-wifi:1.23.0.48
	phil-wifi-base:1.23
	pgoyette-compat-0625:1.23
	netbsd-8-0-RC2:1.23
	pgoyette-compat-0521:1.23
	pgoyette-compat-0502:1.23
	pgoyette-compat-0422:1.23
	netbsd-8-0-RC1:1.23
	pgoyette-compat-0415:1.23
	pgoyette-compat-0407:1.23
	pgoyette-compat-0330:1.23
	pgoyette-compat-0322:1.23
	pgoyette-compat-0315:1.23
	netbsd-7-1-2-RELEASE:1.23
	pgoyette-compat:1.23.0.46
	pgoyette-compat-base:1.23
	netbsd-7-1-1-RELEASE:1.23
	matt-nb8-mediatek:1.23.0.44
	matt-nb8-mediatek-base:1.23
	perseant-stdc-iso10646:1.23.0.42
	perseant-stdc-iso10646-base:1.23
	netbsd-8:1.23.0.40
	netbsd-8-base:1.23
	prg-localcount2-base3:1.23
	prg-localcount2-base2:1.23
	prg-localcount2-base1:1.23
	prg-localcount2:1.23.0.38
	prg-localcount2-base:1.23
	pgoyette-localcount-20170426:1.23
	bouyer-socketcan-base1:1.23
	pgoyette-localcount-20170320:1.23
	netbsd-7-1:1.23.0.36
	netbsd-7-1-RELEASE:1.23
	netbsd-7-1-RC2:1.23
	netbsd-7-nhusb-base-20170116:1.23
	bouyer-socketcan:1.23.0.34
	bouyer-socketcan-base:1.23
	pgoyette-localcount-20170107:1.23
	netbsd-7-1-RC1:1.23
	pgoyette-localcount-20161104:1.23
	netbsd-7-0-2-RELEASE:1.23
	localcount-20160914:1.23
	netbsd-7-nhusb:1.23.0.32
	netbsd-7-nhusb-base:1.23
	pgoyette-localcount-20160806:1.23
	pgoyette-localcount-20160726:1.23
	pgoyette-localcount:1.23.0.30
	pgoyette-localcount-base:1.23
	netbsd-7-0-1-RELEASE:1.23
	netbsd-7-0:1.23.0.28
	netbsd-7-0-RELEASE:1.23
	netbsd-7-0-RC3:1.23
	netbsd-7-0-RC2:1.23
	netbsd-7-0-RC1:1.23
	netbsd-5-2-3-RELEASE:1.22
	netbsd-5-1-5-RELEASE:1.22
	netbsd-6-0-6-RELEASE:1.23
	netbsd-6-1-5-RELEASE:1.23
	netbsd-7:1.23.0.26
	netbsd-7-base:1.23
	yamt-pagecache-base9:1.23
	yamt-pagecache-tag8:1.23
	netbsd-6-1-4-RELEASE:1.23
	netbsd-6-0-5-RELEASE:1.23
	tls-earlyentropy:1.23.0.24
	tls-earlyentropy-base:1.23
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.23
	riastradh-drm2-base3:1.23
	netbsd-6-1-3-RELEASE:1.23
	netbsd-6-0-4-RELEASE:1.23
	netbsd-5-2-2-RELEASE:1.22
	netbsd-5-1-4-RELEASE:1.22
	netbsd-6-1-2-RELEASE:1.23
	netbsd-6-0-3-RELEASE:1.23
	netbsd-5-2-1-RELEASE:1.22
	netbsd-5-1-3-RELEASE:1.22
	netbsd-6-1-1-RELEASE:1.23
	riastradh-drm2-base2:1.23
	riastradh-drm2-base1:1.23
	riastradh-drm2:1.23.0.16
	riastradh-drm2-base:1.23
	netbsd-6-1:1.23.0.22
	netbsd-6-0-2-RELEASE:1.23
	netbsd-6-1-RELEASE:1.23
	khorben-n900:1.23.0.20
	netbsd-6-1-RC4:1.23
	netbsd-6-1-RC3:1.23
	agc-symver:1.23.0.18
	agc-symver-base:1.23
	netbsd-6-1-RC2:1.23
	netbsd-6-1-RC1:1.23
	yamt-pagecache-base8:1.23
	netbsd-5-2:1.22.0.52
	netbsd-6-0-1-RELEASE:1.23
	yamt-pagecache-base7:1.23
	netbsd-5-2-RELEASE:1.22
	netbsd-5-2-RC1:1.22
	matt-nb6-plus-nbase:1.23
	yamt-pagecache-base6:1.23
	netbsd-6-0:1.23.0.14
	netbsd-6-0-RELEASE:1.23
	netbsd-6-0-RC2:1.23
	tls-maxphys:1.23.0.12
	tls-maxphys-base:1.23
	matt-nb6-plus:1.23.0.10
	matt-nb6-plus-base:1.23
	netbsd-6-0-RC1:1.23
	yamt-pagecache-base5:1.23
	yamt-pagecache-base4:1.23
	netbsd-6:1.23.0.8
	netbsd-6-base:1.23
	netbsd-5-1-2-RELEASE:1.22
	netbsd-5-1-1-RELEASE:1.22
	yamt-pagecache-base3:1.23
	yamt-pagecache-base2:1.23
	yamt-pagecache:1.23.0.6
	yamt-pagecache-base:1.23
	cherry-xenmp:1.23.0.4
	cherry-xenmp-base:1.23
	bouyer-quota2-nbase:1.23
	bouyer-quota2:1.23.0.2
	bouyer-quota2-base:1.23
	matt-mips64-premerge-20101231:1.23
	matt-nb5-mips64-premerge-20101231:1.22
	matt-nb5-pq3:1.22.0.50
	matt-nb5-pq3-base:1.22
	netbsd-5-1:1.22.0.48
	netbsd-5-1-RELEASE:1.22
	netbsd-5-1-RC4:1.22
	matt-nb5-mips64-k15:1.22
	netbsd-5-1-RC3:1.22
	netbsd-5-1-RC2:1.22
	netbsd-5-1-RC1:1.22
	netbsd-5-0-2-RELEASE:1.22
	matt-nb5-mips64-premerge-20091211:1.22
	matt-premerge-20091211:1.23
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.22
	matt-nb4-mips64-k7-u2a-k9b:1.22
	matt-nb5-mips64-u1-k1-k5:1.22
	matt-nb5-mips64:1.22.0.46
	netbsd-5-0-1-RELEASE:1.22
	jym-xensuspend-nbase:1.22
	netbsd-5-0:1.22.0.44
	netbsd-5-0-RELEASE:1.22
	netbsd-5-0-RC4:1.22
	netbsd-5-0-RC3:1.22
	netbsd-5-0-RC2:1.22
	jym-xensuspend:1.22.0.42
	jym-xensuspend-base:1.22
	netbsd-5-0-RC1:1.22
	netbsd-5:1.22.0.40
	netbsd-5-base:1.22
	matt-mips64-base2:1.22
	matt-mips64:1.22.0.38
	netbsd-4-0-1-RELEASE:1.22
	wrstuden-revivesa-base-3:1.22
	wrstuden-revivesa-base-2:1.22
	wrstuden-fixsa-newbase:1.22
	wrstuden-revivesa-base-1:1.22
	yamt-pf42-base4:1.22
	yamt-pf42-base3:1.22
	hpcarm-cleanup-nbase:1.22
	yamt-pf42-baseX:1.22
	yamt-pf42-base2:1.22
	wrstuden-revivesa:1.22.0.36
	wrstuden-revivesa-base:1.22
	yamt-pf42:1.22.0.34
	yamt-pf42-base:1.22
	mjf-devfs2:1.22.0.32
	mjf-devfs2-base:1.22
	keiichi-mipv6:1.22.0.30
	keiichi-mipv6-base:1.22
	mjf-devfs:1.22.0.28
	mjf-devfs-base:1.22
	matt-armv6-nbase:1.22
	matt-armv6-prevmlocking:1.22
	wrstuden-fixsa-base-1:1.22
	netbsd-4-0:1.22.0.26
	netbsd-4-0-RELEASE:1.22
	cube-autoconf:1.22.0.24
	cube-autoconf-base:1.22
	netbsd-4-0-RC5:1.22
	netbsd-4-0-RC4:1.22
	netbsd-4-0-RC3:1.22
	netbsd-4-0-RC2:1.22
	netbsd-4-0-RC1:1.22
	matt-armv6:1.22.0.22
	matt-armv6-base:1.22
	matt-mips64-base:1.22
	hpcarm-cleanup:1.22.0.20
	hpcarm-cleanup-base:1.22
	netbsd-3-1-1-RELEASE:1.22
	netbsd-3-0-3-RELEASE:1.22
	wrstuden-fixsa:1.22.0.18
	wrstuden-fixsa-base:1.22
	abandoned-netbsd-4-base:1.22
	abandoned-netbsd-4:1.22.0.12
	netbsd-3-1:1.22.0.14
	netbsd-3-1-RELEASE:1.22
	netbsd-3-0-2-RELEASE:1.22
	netbsd-3-1-RC4:1.22
	netbsd-3-1-RC3:1.22
	netbsd-3-1-RC2:1.22
	netbsd-3-1-RC1:1.22
	netbsd-4:1.22.0.16
	netbsd-4-base:1.22
	netbsd-3-0-1-RELEASE:1.22
	netbsd-3-0:1.22.0.10
	netbsd-3-0-RELEASE:1.22
	netbsd-3-0-RC6:1.22
	netbsd-3-0-RC5:1.22
	netbsd-3-0-RC4:1.22
	netbsd-3-0-RC3:1.22
	netbsd-3-0-RC2:1.22
	netbsd-3-0-RC1:1.22
	netbsd-2-0-3-RELEASE:1.22
	netbsd-2-1:1.22.0.8
	netbsd-2-1-RELEASE:1.22
	netbsd-2-1-RC6:1.22
	netbsd-2-1-RC5:1.22
	netbsd-2-1-RC4:1.22
	netbsd-2-1-RC3:1.22
	netbsd-2-1-RC2:1.22
	netbsd-2-1-RC1:1.22
	netbsd-2-0-2-RELEASE:1.22
	netbsd-3:1.22.0.6
	netbsd-3-base:1.22
	netbsd-2-0-1-RELEASE:1.22
	netbsd-2:1.22.0.4
	netbsd-2-base:1.22
	netbsd-2-0-RELEASE:1.22
	netbsd-2-0-RC5:1.22
	netbsd-2-0-RC4:1.22
	netbsd-2-0-RC3:1.22
	netbsd-2-0-RC2:1.22
	netbsd-2-0-RC1:1.22
	netbsd-2-0:1.22.0.2
	netbsd-2-0-base:1.22
	netbsd-1-6-PATCH002-RELEASE:1.20
	netbsd-1-6-PATCH002:1.20
	netbsd-1-6-PATCH002-RC4:1.20
	netbsd-1-6-PATCH002-RC3:1.20
	netbsd-1-6-PATCH002-RC2:1.20
	netbsd-1-6-PATCH002-RC1:1.20
	netbsd-1-6-PATCH001:1.20
	netbsd-1-6-PATCH001-RELEASE:1.20
	netbsd-1-6-PATCH001-RC3:1.20
	netbsd-1-6-PATCH001-RC2:1.20
	netbsd-1-6-PATCH001-RC1:1.20
	fvdl_fs64_base:1.20
	netbsd-1-6-RELEASE:1.20
	netbsd-1-6-RC3:1.20
	netbsd-1-6-RC2:1.20
	netbsd-1-6-RC1:1.20
	netbsd-1-6:1.20.0.2
	netbsd-1-6-base:1.20
	netbsd-1-5-PATCH003:1.15.4.1
	netbsd-1-5-PATCH002:1.15
	netbsd-1-5-PATCH001:1.15
	netbsd-1-5-RELEASE:1.15
	netbsd-1-5-BETA2:1.15
	netbsd-1-5-BETA:1.15
	netbsd-1-4-PATCH003:1.13
	netbsd-1-5-ALPHA2:1.15
	netbsd-1-5:1.15.0.4
	netbsd-1-5-base:1.15
	minoura-xpg4dl:1.15.0.2
	minoura-xpg4dl-base:1.15
	netbsd-1-4-PATCH002:1.13
	wrstuden-devbsize-19991221:1.14
	wrstuden-devbsize:1.14.0.4
	wrstuden-devbsize-base:1.14
	comdex-fall-1999:1.14.0.2
	comdex-fall-1999-base:1.14
	netbsd-1-4-PATCH001:1.13
	netbsd-1-4-RELEASE:1.13
	netbsd-1-4:1.13.0.2
	netbsd-1-4-base:1.13
	netbsd-1-3-PATCH003:1.10
	netbsd-1-3-PATCH003-CANDIDATE2:1.10
	netbsd-1-3-PATCH003-CANDIDATE1:1.10
	netbsd-1-3-PATCH003-CANDIDATE0:1.10
	netbsd-1-3-PATCH002:1.10
	netbsd-1-3-PATCH001:1.10
	netbsd-1-3-RELEASE:1.10
	netbsd-1-3-BETA:1.10
	netbsd-1-3:1.10.0.2
	netbsd-1-3-base:1.10
	netbsd-1-2-PATCH001:1.7
	netbsd-1-2-RELEASE:1.7
	netbsd-1-2-BETA:1.7
	netbsd-1-2-base:1.7
	netbsd-1-2:1.7.0.4
	netbsd-1-1-PATCH001:1.6.2.1
	netbsd-1-1-RELEASE:1.6.2.1
	netbsd-1-1:1.6.0.2
	netbsd-1-1-base:1.6
	netbsd-1-0-PATCH06:1.1
	netbsd-1-0-PATCH05:1.1
	netbsd-1-0-PATCH04:1.1
	netbsd-1-0-PATCH03:1.1
	netbsd-1-0-PATCH02:1.1
	netbsd-1-0-PATCH1:1.1
	netbsd-1-0-PATCH0:1.1
	netbsd-1-0-RELEASE:1.1
	netbsd-1-0:1.1.0.2
	netbsd-1-0-base:1.1;
locks; strict;
comment	@# @;


1.23
date	2009.09.18.09.24.59;	author abs;	state Exp;
branches;
next	1.22;

1.22
date	2003.10.26.07.25.33;	author lukem;	state Exp;
branches
	1.22.32.1;
next	1.21;

1.21
date	2003.07.10.10.34.03;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	2002.03.06.22.55.18;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	2001.10.13.06.15.15;	author jmc;	state Exp;
branches;
next	1.18;

1.18
date	2001.10.10.05.13.51;	author enami;	state Exp;
branches;
next	1.17;

1.17
date	2000.11.01.07.57.56;	author garbled;	state Exp;
branches;
next	1.16;

1.16
date	2000.08.30.23.51.49;	author jhawk;	state Exp;
branches;
next	1.15;

1.15
date	2000.05.02.16.06.46;	author sjg;	state Exp;
branches
	1.15.4.1;
next	1.14;

1.14
date	99.05.11.20.46.58;	author veego;	state Exp;
branches;
next	1.13;

1.13
date	99.03.04.20.32.19;	author wrstuden;	state Exp;
branches;
next	1.12;

1.12
date	98.09.05.14.46.14;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	98.01.26.23.50.58;	author bad;	state Exp;
branches;
next	1.10;

1.10
date	97.06.23.21.18.34;	author thorpej;	state Exp;
branches;
next	1.9;

1.9
date	97.05.14.22.19.48;	author is;	state Exp;
branches;
next	1.8;

1.8
date	96.08.30.17.32.23;	author thorpej;	state Exp;
branches;
next	1.7;

1.7
date	95.11.28.23.57.03;	author jtc;	state Exp;
branches;
next	1.6;

1.6
date	95.10.02.13.10.53;	author chopps;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	95.10.02.12.58.45;	author chopps;	state Exp;
branches;
next	1.4;

1.4
date	95.09.30.08.59.02;	author chopps;	state Exp;
branches;
next	1.3;

1.3
date	95.09.30.08.04.03;	author chopps;	state Exp;
branches;
next	1.2;

1.2
date	95.09.30.04.22.48;	author chopps;	state Exp;
branches;
next	1.1;

1.1
date	94.10.06.20.25.49;	author chopps;	state Exp;
branches
	1.1.2.1;
next	;

1.22.32.1
date	2008.10.05.20.10.12;	author mjf;	state dead;
branches;
next	;

1.15.4.1
date	2002.03.25.17.32.52;	author he;	state Exp;
branches;
next	;

1.6.2.1
date	95.11.24.07.58.30;	author chopps;	state Exp;
branches;
next	;

1.1.2.1
date	94.10.06.20.25.49;	author chopps;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	94.10.06.20.25.50;	author chopps;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Merge four separate copies of list2sh.awk runlist.sh (three identical
and one with slightly less options). Release build verified on amiga,
bebox and evbsh3. Vax build fails for unrelated reason.
@
text
@#	$NetBSD: Makefile.inc,v 1.22 2003/10/26 07:25:33 lukem Exp $

# TOP is assumed to be defined by Makefile including this one.

CBIN=		instbin
COMMONDIR=	${TOP}/inst-common

MOUNT_POINT?=	/mnt
VND?=		vnd0
VND_DEV=	/dev/${VND}c
VND_RDEV=	/dev/r${VND}c
IMAGE?=		xxx-${DISTRIBREV}.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		${COMMONDIR}/list ${.CURDIR}/list
CRUNCHCONF=	${COMMONDIR}/${CBIN}.conf
MTREECONF=	${COMMONDIR}/mtree.conf

DISKTYPE=	miniroot

all: ${CBIN}
	dd if=/dev/zero of=${IMAGE} bs=128k count=32
	vnconfig -t ${DISKTYPE} -v -c ${VND_DEV} ${IMAGE}
	installboot ${MDEC}/xxboot ${VND_RDEV}
	newfs -B be -c 64 -m 0 -o space ${VND_RDEV} ${DISKTYPE}
	mount -t ffs ${VND_DEV} ${MOUNT_POINT}
	${TOOL_MTREE} -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    KERNOBJDIR=${KERNOBJDIR} TARGDIR=${MOUNT_POINT} ${HOST_SH} \
	    ${NETBSDSRCDIR}/distrib/common/runlist.sh ${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_DEV}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND_DEV}
	-/bin/rm -f ${IMAGE}

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	${TOOL_CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	${MAKE} -f ${CBIN}.mk all

clean cleandir distclean:
	/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c

.include <bsd.obj.mk>
.include <bsd.subdir.mk>
@


1.22
log
@Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.21 2003/07/10 10:34:03 lukem Exp $
d29 2
a30 2
	    KERNOBJDIR=${KERNOBJDIR} \
	    TARGDIR=${MOUNT_POINT} ${HOST_SH} ${TOP}/runlist.sh ${LISTS}
@


1.22.32.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.22 2003/10/26 07:25:33 lukem Exp $
@


1.21
log
@Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2002/03/06 22:55:18 lukem Exp $
d30 1
a30 1
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
@


1.20
log
@replace local ${REV} with ${DISTRIBREV} from distrib/Makefile.inc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2001/10/13 06:15:15 jmc Exp $
a18 3
CRUNCHGEN?=	crunchgen
MTREE?=		mtree

d27 1
a27 1
	${MTREE} -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
d43 1
a43 1
	${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
@


1.19
log
@Add MTREE?= to add Makefiles and use  when running mtree
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2001/10/10 05:13:51 enami Exp $
d12 1
a12 1
IMAGE?=		xxx-${REV}.fs
@


1.18
log
@Use symbol MTREECONF instead of MTREE to refer configuration file
to avoid conflicts.  Pointed out by chs@@netbsd.org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2000/11/01 07:57:56 garbled Exp $
d20 1
d30 1
a30 1
	mtree -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
@


1.17
log
@Change all ocurrences of "crunchgen" to ${CRUNCHGEN}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2000/08/30 23:51:49 jhawk Exp $
d17 1
a17 1
MTREE=		${COMMONDIR}/mtree.conf
d29 1
a29 1
	mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
@


1.16
log
@Use
  ${MAKE}
instead of
  make
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2000/05/02 16:06:46 sjg Exp $
d19 2
d45 1
a45 1
	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
@


1.15
log
@use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 1999/05/11 20:46:58 veego Exp $
d46 1
a46 1
	make -f ${CBIN}.mk all
@


1.15.4.1
log
@Apply patch (requested by he):
  Introduce dependency between ramdisk/miniroot construction and
  osrelease.sh, to better support UPDATE builds of releases.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2000/05/02 16:06:46 sjg Exp $
d45 1
a45 1
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c ${VERDEP}
@


1.14
log
@Sync with the recent crunchgen changes.
- Remove *.cro files and not the obsoleted *.lo files.

From Bill Studenmund commit message:
> 3) Generate .cro files rather than .lo files. .lo now is used for "local
> objects" - obj's for the host machine not the target machine.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 1999/03/04 20:32:19 wrstuden Exp $
d29 1
@


1.13
log
@Modify all calls to newfs in ramdisk/miniroot creation to include
the needed endianism of the architecture. One step towards cross-building
releases.

Not touched are newfs calls in install scripts as they run on the desired
machine and thus default correctly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 1998/09/05 14:46:14 lukem Exp $
d48 1
a48 1
	/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
@


1.12
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 1998/01/26 23:50:58 bad Exp $
d25 1
a25 1
	newfs -c 64 -m 0 -o space ${VND_RDEV} ${DISKTYPE}
@


1.11
log
@We don't need to manually flush the buffer cache after ``vnconfig -u''
anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 1997/06/23 21:18:34 thorpej Exp $
d47 1
a47 1
clean cleandir:
@


1.10
log
@Update for changes to vnconfig(8).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 1997/05/14 22:19:48 is Exp $
a34 1
	cat /*bin/* > /dev/null
@


1.9
log
@Stuff I needed to build the last NetBSD-12D/Amiga snapshot.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 1996/08/30 17:32:23 thorpej Exp $
d19 2
d23 1
a23 1
	vnconfig -v -c ${VND_DEV} ${IMAGE}
d25 1
a25 1
	newfs -c 64 -m 0 -o space ${VND_RDEV} miniroot
@


1.8
log
@RCS id police.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1995/11/28 23:57:03 jtc Exp $
d22 2
a23 1
	newfs -c 64 -O -m 0 -o space ${VND_RDEV} miniroot
d33 1
@


1.7
log
@merge in changes from 1.1 release branch
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.6.2.1 1995/11/24 07:58:30 chopps Exp $
@


1.6
log
@remove extra space char
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.5 1995/10/02 12:58:45 chopps Exp $
d20 1
a20 1
	dd if=/dev/zero of=${IMAGE} bs=80k count=22
d22 2
a23 2
	newfs -O -m 0 -o space ${VND_RDEV} floppyhd
	mount ${VND_DEV} ${MOUNT_POINT}
@


1.6.2.1
log
@latest update from osymh@@gemini.oscs.montana.edu (Michael L. Hitch)
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.6 1995/10/02 13:10:53 chopps Exp $
d20 1
a20 1
	dd if=/dev/zero of=${IMAGE} bs=128k count=32
d22 2
a23 2
	newfs -c 64 -O -m 0 -o space ${VND_RDEV} miniroot
	mount -t ffs ${VND_DEV} ${MOUNT_POINT}
@


1.5
log
@update install stuff from osymh@@gemini.oscs.montana.edu (Michael L. Hitch)
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.4 1995/09/30 08:59:02 chopps Exp $
d39 1
a39 1
 	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
@


1.4
log
@adjust newfs no need to be so specific
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.3 1995/09/30 08:04:03 chopps Exp $
d39 1
a39 1
	crunchgen ${CRUNCHCONF}
@


1.3
log
@add an all target to the make line
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.2 1995/09/30 04:22:48 chopps Exp $
d22 1
a22 1
	newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} floppyhd
@


1.2
log
@update things.  Now use 1.7M (HD) image.  Amigas with only DD floppy
drives will need to use miniroot (probably better anyway)
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.1 1994/10/06 20:25:49 chopps Exp $
d42 1
a42 1
	make -f ${CBIN}.mk
@


1.1
log
@Add amiga install floppy build stuff.
@
text
@d1 1
a1 1
#	$Id$
d20 1
a20 1
	dd if=/dev/zero of=${IMAGE} bs=80k count=11
d22 1
a22 1
	newfs -O -m 0 -o space -i 3052 -c 80 ${VND_RDEV} floppy
d31 1
a31 1
	vnconfig -u ${VND_DEV} ${IMAGE}
d35 1
a35 1
	-vnconfig -u ${VND_DEV} ${IMAGE}
@


1.1.2.1
log
@file Makefile.inc was added on branch netbsd-1-0 on 1994-10-06 20:25:50 +0000
@
text
@d1 48
@


1.1.2.2
log
@Add amiga install floppy build stuff.
@
text
@a0 48
#	$Id: Makefile.inc,v 1.1 1994/10/06 20:25:49 chopps Exp $

# TOP is assumed to be defined by Makefile including this one.

CBIN=		instbin
COMMONDIR=	${TOP}/inst-common

MOUNT_POINT?=	/mnt
VND?=		vnd0
VND_DEV=	/dev/${VND}c
VND_RDEV=	/dev/r${VND}c
IMAGE?=		xxx-${REV}.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		${COMMONDIR}/list ${.CURDIR}/list
CRUNCHCONF=	${COMMONDIR}/${CBIN}.conf
MTREE=		${COMMONDIR}/mtree.conf

all: ${CBIN}
	dd if=/dev/zero of=${IMAGE} bs=80k count=11
	vnconfig -v -c ${VND_DEV} ${IMAGE}
	newfs -O -m 0 -o space -i 3052 -c 80 ${VND_RDEV} floppy
	mount ${VND_DEV} ${MOUNT_POINT}
	mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_DEV} ${IMAGE}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND_DEV} ${IMAGE}
	-/bin/rm -f ${IMAGE}

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	crunchgen ${CRUNCHCONF}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	make -f ${CBIN}.mk

clean cleandir:
	/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c

.include <bsd.obj.mk>
.include <bsd.subdir.mk>
@
