summaryrefslogtreecommitdiff
path: root/distrib/sparc64/cdfs/Makefile
blob: 7f1a5d732ec56c0f5f3282a1002f4835f0bfa968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#	$OpenBSD: Makefile,v 1.5 2003/03/02 03:27:24 brad Exp $

TOP=	${.CURDIR}/..

.include "${TOP}/Makefile.inc"

CDFS=	cd${REV}.fs

all: ${CDFS}

${CDFS}:
	-rm -rf ${.OBJDIR}/cd-dir
	-@mkdir ${.OBJDIR}/cd-dir
	mkhybrid -o ${.OBJDIR}/${CDFS} ${.OBJDIR}/cd-dir
	vnconfig -v -c svnd0 ${.OBJDIR}/${CDFS}
	disklabel -w svnd0 fakecdrom "CD-ROM OpenBSD"
	vnconfig -u svnd0
	mksuncd f ${.OBJDIR}/${CDFS} ${.OBJDIR}/../miniroot/miniroot${REV}.fs

install:
	cp ${CDFS} ${DESTDIR}/snapshot

clean cleandir:
	/bin/rm -f ${CDFS}

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