Update the Broadcom Gigabit Ethernet driver and the Broadcom
[dragonfly.git] / nrelease / Makefile
CommitLineData
3ebedc5e 1# $DragonFly: src/nrelease/Makefile,v 1.6 2004/02/03 04:26:01 dillon Exp $
6ca9a59c
MD
2#
3ISODIR ?= /usr/release
4ISOFILE ?= ${ISODIR}/dfly.iso
5ISOROOT = ${ISODIR}/root
6OBJSYS= ${.OBJDIR}/../sys
7KERNCONF ?= GENERIC
8
17d0fefe 9release: check clean buildworld1 buildkernel1 buildiso mkiso
6ca9a59c 10
17d0fefe 11quickrel: check clean buildworld2 buildkernel2 buildiso mkiso
6ca9a59c 12
17d0fefe 13realquickrel: check clean buildiso mkiso
6ca9a59c 14
17d0fefe
MD
15check:
16 if [ ! -f /usr/local/bin/mkisofs ]; then \
17 echo "You need to install the mkisofs port for this target"; \
18 exit 1; fi
19 if [ ! -f /usr/local/bin/cvsup ]; then \
20 echo "You need to install the cvsup port for this target"; \
21 exit 1; fi
6ca9a59c
MD
22
23buildworld1:
24 ( cd ${.CURDIR}/..; make buildworld )
25
26buildworld2:
27 ( cd ${.CURDIR}/..; make -DNOTOOLS -DNOCLEAN buildworld )
28
29buildkernel1:
30 ( cd ${.CURDIR}/..; make buildkernel KERNCONF=${KERNCONF} )
31
32buildkernel2:
33 ( cd ${.CURDIR}/..; make -DNOCLEAN buildkernel KERNCONF=${KERNCONF} )
34
35buildiso:
36 if [ ! -d ${ISOROOT} ]; then mkdir -p ${ISOROOT}; fi
37 ( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} installworld )
38 ( cd ${.CURDIR}/../etc; make DESTDIR=${ISOROOT} distribution )
39 cpdup -X cpignore -o ${.CURDIR}/root ${ISOROOT} -vv
40 ( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} \
41 installkernel KERNCONF=${KERNCONF} )
42 mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.local.dist -p ${ISOROOT}/usr/local/
43 mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.var.dist -p ${ISOROOT}/var
44 dev_mkdb -f ${ISOROOT}/var/run/dev.db ${ISOROOT}/dev
1d92043b 45 cp /usr/local/bin/mkisofs ${ISOROOT}/usr/local/bin
6ca9a59c 46 cp /usr/local/man/man8/mkisofs.8.gz ${ISOROOT}/usr/local/man/man8
1d92043b 47 cp /usr/local/bin/cvsup ${ISOROOT}/usr/local/bin
6ca9a59c
MD
48 cp /usr/local/man/man1/cvsup.1.gz ${ISOROOT}/usr/local/man/man1
49
50mkiso:
51 ( cd ${ISOROOT}; mkisofs -b boot/cdboot -no-emul-boot \
382f1ee3 52 -R -J -V DragonFly -o ${ISOFILE} . )
6ca9a59c
MD
53
54clean:
55 if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi
56 if [ -d ${ISOROOT} ]; then rm -rf ${ISOROOT}; fi
57
58realclean: clean
3ebedc5e 59 rm -rf ${OBJSYS}/${KERNCONF}
6ca9a59c
MD
60
61.include <bsd.prog.mk>