head	1.10;
access;
symbols
	perseant-exfatfs-base-20250801:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.48
	perseant-exfatfs-base:1.10
	cjep_sun2x:1.10.0.46
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	cjep_staticlib_x:1.10.0.44
	cjep_staticlib_x-base:1.10
	phil-wifi-20200421:1.10
	phil-wifi-20200411:1.10
	phil-wifi-20200406:1.10
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	pgoyette-compat-0728:1.10
	pgoyette-compat-0625:1.10
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	pgoyette-compat:1.10.0.42
	pgoyette-compat-base:1.10
	perseant-stdc-iso10646:1.10.0.40
	perseant-stdc-iso10646-base:1.10
	prg-localcount2-base3:1.10
	prg-localcount2-base2:1.10
	prg-localcount2-base1:1.10
	prg-localcount2:1.10.0.38
	prg-localcount2-base:1.10
	pgoyette-localcount-20170426:1.10
	bouyer-socketcan-base1:1.10
	pgoyette-localcount-20170320:1.10
	bouyer-socketcan:1.10.0.36
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	pgoyette-localcount-20161104:1.10
	localcount-20160914:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.34
	pgoyette-localcount-base:1.10
	netbsd-5-2-3-RELEASE:1.10
	netbsd-5-1-5-RELEASE:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.10
	tls-earlyentropy:1.10.0.30
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-5-2-2-RELEASE:1.10
	netbsd-5-1-4-RELEASE:1.10
	netbsd-5-2-1-RELEASE:1.10
	netbsd-5-1-3-RELEASE:1.10
	agc-symver:1.10.0.32
	agc-symver-base:1.10
	tls-maxphys-base:1.10
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.10.0.28
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.10
	netbsd-5-2-RC1:1.10
	yamt-pagecache-base6:1.10
	yamt-pagecache-base5:1.10
	yamt-pagecache-base4:1.10
	netbsd-5-1-2-RELEASE:1.10
	netbsd-5-1-1-RELEASE:1.10
	yamt-pagecache-base3:1.10
	yamt-pagecache-base2:1.10
	yamt-pagecache:1.10.0.26
	yamt-pagecache-base:1.10
	bouyer-quota2-nbase:1.10
	bouyer-quota2:1.10.0.24
	bouyer-quota2-base:1.10
	matt-nb5-pq3:1.10.0.22
	matt-nb5-pq3-base:1.10
	netbsd-5-1:1.10.0.20
	netbsd-5-1-RELEASE:1.10
	netbsd-5-1-RC4:1.10
	netbsd-5-1-RC3:1.10
	netbsd-5-1-RC2:1.10
	netbsd-5-1-RC1:1.10
	netbsd-5-0-2-RELEASE:1.10
	netbsd-5-0-1-RELEASE:1.10
	jym-xensuspend-nbase:1.10
	netbsd-5-0:1.10.0.18
	netbsd-5-0-RELEASE:1.10
	netbsd-5-0-RC4:1.10
	netbsd-5-0-RC3:1.10
	netbsd-5-0-RC2:1.10
	jym-xensuspend:1.10.0.16
	jym-xensuspend-base:1.10
	netbsd-5-0-RC1:1.10
	netbsd-5:1.10.0.14
	netbsd-5-base:1.10
	yamt-pf42-base4:1.10
	yamt-pf42-base3:1.10
	hpcarm-cleanup-nbase:1.10
	yamt-pf42-base2:1.10
	yamt-pf42:1.10.0.12
	yamt-pf42-base:1.10
	mjf-devfs2:1.10.0.10
	mjf-devfs2-base:1.10
	keiichi-mipv6:1.10.0.8
	keiichi-mipv6-base:1.10
	mjf-devfs:1.10.0.6
	mjf-devfs-base:1.10
	cube-autoconf:1.10.0.4
	cube-autoconf-base:1.10
	hpcarm-cleanup:1.10.0.2
	hpcarm-cleanup-base:1.10
	netbsd-1-3-PATCH003:1.1.2.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.1.2.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.1.2.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.1.2.2
	netbsd-1-3-PATCH002:1.1.2.2
	netbsd-1-3-PATCH001:1.1.2.2
	netbsd-1-3-RELEASE:1.1.2.2
	netbsd-1-3-BETA:1.1
	netbsd-1-3:1.1.0.2;
locks; strict;
comment	@# @;


1.10
date	98.10.16.00.20.02;	author ross;	state dead;
branches;
next	1.9;

1.9
date	98.09.22.03.00.30;	author ross;	state Exp;
branches;
next	1.8;

1.8
date	98.09.05.14.46.13;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	98.05.13.19.13.06;	author ross;	state Exp;
branches;
next	1.6;

1.6
date	98.05.13.19.07.46;	author ross;	state Exp;
branches;
next	1.5;

1.5
date	98.05.02.08.50.12;	author ross;	state Exp;
branches;
next	1.4;

1.4
date	98.03.19.00.07.27;	author thorpej;	state Exp;
branches;
next	1.3;

1.3
date	98.01.26.23.50.56;	author bad;	state Exp;
branches;
next	1.2;

1.2
date	97.12.22.00.39.29;	author cjs;	state Exp;
branches;
next	1.1;

1.1
date	97.11.17.09.47.17;	author cjs;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	97.11.17.09.47.17;	author perry;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	97.12.22.01.19.27;	author perry;	state Exp;
branches;
next	;


desc
@@


1.10
log
@History.
@
text
@#	$NetBSD: Makefile,v 1.9 1998/09/22 03:00:30 ross Exp $

TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
IMAGE=		md_install-${REV}.fs
CBIN=		md_install

AUXTARGETS=	install.sh upgrade.sh start.sh
AUXCLEAN=	${AUXTARGETS}

MOUNT_POINT?=	/mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_CDEV=	/dev/${VND}c
VND_CRDEV=	/dev/r${VND}c
IMAGE?=		xxx-${REV}.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		list
MTREE=		mtree.conf

DISKTYPE=	floppy

CRUNCHCONF=	${CBIN}.conf
CRUNCHFILES=	${CBIN}.mk ${CBIN}.cache ${CBIN}.c
CRUNCHCMD=	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}

install.sh: install.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

upgrade.sh: upgrade.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

start.sh: start.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

all: ${AUXTARGETS} ${CBIN} 
	dd if=/dev/zero of=${IMAGE} count=4096
	vnconfig -v -c ${VND_CDEV} ${IMAGE}
	#vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
	#disklabel -rw ${VND_CDEV} ${DISKTYPE}
	#newfs -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
	newfs -m 0 -o space -i 5120 ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}

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


${CRUNCHFILES}:	${CRUNCHCONF}
	if ${CRUNCHCMD}; then exit 0; else rm -f ${CRUNCHFILES}; exit 1; fi

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

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

# libhack is listed in rd_bin.conf but is built here.
HACKSRC=${TOP}/../../utils/libhack
.include "${HACKSRC}/Makefile.inc"

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


1.9
log
@Tweak the clean: target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1998/09/05 14:46:13 lukem Exp $
@


1.8
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1998/05/13 19:13:06 ross Exp $
d70 2
a71 1
	/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
@


1.7
log
@The previous rev deletes the three crunchgen(1) output files on error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1998/05/13 19:07:46 ross Exp $
d69 1
a69 1
clean cleandir:
@


1.6
log
@Note that a ./MAKEDEV all is needed, document the install script
functions, briefly describe a manual install, fix section cross
references, and other misc edits.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1998/05/02 08:50:12 ross Exp $
d61 1
@


1.5
log
@Always rebuild the crunchgen targets, otherwise a second make will bash
on even in the face of missing files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1998/03/19 00:07:27 thorpej Exp $
a22 1
CRUNCHCONF=	${CBIN}.conf
d27 4
d62 2
a63 2
${CBIN}.mk ${CBIN}.cache ${CBIN}.c! ${CRUNCHCONF}
	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@


1.4
log
@Pull in bsd.own.mk to get a number of things right.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1998/01/26 23:50:56 bad Exp $
d59 1
a59 1
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
@


1.3
log
@We don't need to manually flush the buffer cache after ``vnconfig -u''
anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1997/12/22 00:39:29 cjs Exp $
d72 1
a74 1

@


1.2
log
@Add install scripts. (Stolen from old i386 SSTO floppy.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1997/11/17 09:47:17 cjs Exp $
a52 1
	cat /*bin/* > /dev/null
a57 1
	cat /*bin/* > /dev/null
@


1.1
log
@Add support for bootable floppy for installs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1997/07/29 18:07:53 phil Exp $
d9 3
d28 10
a37 1
all: ${CBIN} 
d68 1
a68 1
	/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
@


1.1.2.1
log
@file Makefile was added on branch netbsd-1-3 on 1997-12-22 01:19:27 +0000
@
text
@d1 64
@


1.1.2.2
log
@pullup from trunk (cjs)
@
text
@a0 76
#	$NetBSD: Makefile,v 1.1.2.1 1997/12/22 01:19:27 perry Exp $

TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
IMAGE=		md_install-${REV}.fs
CBIN=		md_install

AUXTARGETS=	install.sh upgrade.sh start.sh
AUXCLEAN=	${AUXTARGETS}

MOUNT_POINT?=	/mnt
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_CDEV=	/dev/${VND}c
VND_CRDEV=	/dev/r${VND}c
IMAGE?=		xxx-${REV}.fs
MDEC=		${DESTDIR}/usr/mdec

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

DISKTYPE=	floppy

install.sh: install.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

upgrade.sh: upgrade.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

start.sh: start.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

all: ${AUXTARGETS} ${CBIN} 
	dd if=/dev/zero of=${IMAGE} count=4096
	vnconfig -v -c ${VND_CDEV} ${IMAGE}
	#vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
	#disklabel -rw ${VND_CDEV} ${DISKTYPE}
	#newfs -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
	newfs -m 0 -o space -i 5120 ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}
	cat /*bin/* > /dev/null

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND_DEV}
	-/bin/rm -f ${IMAGE}
	cat /*bin/* > /dev/null

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

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

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

# libhack is listed in rd_bin.conf but is built here.
HACKSRC=${TOP}/../../utils/libhack
.include "${HACKSRC}/Makefile.inc"

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

@
