1 # $DragonFly: src/nrelease/Makefile,v 1.1 2003/12/01 09:59:43 dillon Exp $
4 ISOFILE ?= ${ISODIR}/dfly.iso
5 ISOROOT = ${ISODIR}/root
6 OBJSYS= ${.OBJDIR}/../sys
9 .if !exists(/usr/local/bin/mkisofs)
10 .error "You need to install the mkisofs port so I can build the ISO"
12 .if !exists(/usr/local/bin/cvsup)
13 .error "You need to install the cvsup port so I can put cvsup in the ISO"
16 release: clean buildworld1 buildkernel1 buildiso mkiso
18 quickrel: clean buildworld2 buildkernel2 buildiso mkiso
20 realquickrel: clean buildiso mkiso
23 ( cd ${.CURDIR}/..; make buildworld )
26 ( cd ${.CURDIR}/..; make -DNOTOOLS -DNOCLEAN buildworld )
29 ( cd ${.CURDIR}/..; make buildkernel KERNCONF=${KERNCONF} )
32 ( cd ${.CURDIR}/..; make -DNOCLEAN buildkernel KERNCONF=${KERNCONF} )
35 if [ ! -d ${ISOROOT} ]; then mkdir -p ${ISOROOT}; fi
36 ( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} installworld )
37 ( cd ${.CURDIR}/../etc; make DESTDIR=${ISOROOT} distribution )
38 cpdup -X cpignore -o ${.CURDIR}/root ${ISOROOT} -vv
39 ( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} \
40 installkernel KERNCONF=${KERNCONF} )
41 mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.local.dist -p ${ISOROOT}/usr/local/
42 mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.var.dist -p ${ISOROOT}/var
43 dev_mkdb -f ${ISOROOT}/var/run/dev.db ${ISOROOT}/dev
44 cp /usr/local/bin/mkisofs ${ISOROOT}
45 cp /usr/local/man/man8/mkisofs.8.gz ${ISOROOT}/usr/local/man/man8
46 cp /usr/local/bin/cvsup ${ISOROOT}
47 cp /usr/local/man/man1/cvsup.1.gz ${ISOROOT}/usr/local/man/man1
50 ( cd ${ISOROOT}; mkisofs -b boot/cdboot -no-emul-boot \
51 -r -J -V DragonFly -o ${ISOFILE} . )
54 if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi
55 if [ -d ${ISOROOT} ]; then rm -rf ${ISOROOT}; fi
58 rm -rf ${OBJSYS}/GENERIC
60 .include <bsd.prog.mk>