File:  [DragonFly] / src / nrelease / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Mon Dec 1 19:12:25 2003 UTC (10 years, 11 months ago) by dillon
Branches: MAIN
CVS tags: HEAD
Temporary disable the ports checks.. the Makefile has to be runnable from
buildworld in order to create the obj dir infrastructure only (not to actually
build a release).

    1: # $DragonFly: src/nrelease/Makefile,v 1.3 2003/12/01 19:12:25 dillon Exp $
    2: #
    3: ISODIR ?= /usr/release
    4: ISOFILE ?= ${ISODIR}/dfly.iso
    5: ISOROOT = ${ISODIR}/root
    6: OBJSYS= ${.OBJDIR}/../sys
    7: KERNCONF ?= GENERIC
    8: 
    9: #.if !exists(/usr/local/bin/mkisofs)
   10: #.error "You need to install the mkisofs port so I can build the ISO"
   11: #.endif
   12: #.if !exists(/usr/local/bin/cvsup)
   13: #.error "You need to install the cvsup port so I can put cvsup in the ISO"
   14: #.endif
   15: 
   16: release:	clean buildworld1 buildkernel1 buildiso mkiso
   17: 
   18: quickrel:	clean buildworld2 buildkernel2 buildiso mkiso
   19: 
   20: realquickrel:	clean buildiso mkiso
   21: 
   22: buildworld1:
   23: 	( cd ${.CURDIR}/..; make buildworld )
   24: 
   25: buildworld2:
   26: 	( cd ${.CURDIR}/..; make -DNOTOOLS -DNOCLEAN buildworld )
   27: 
   28: buildkernel1:
   29: 	( cd ${.CURDIR}/..; make buildkernel KERNCONF=${KERNCONF} )
   30: 
   31: buildkernel2:
   32: 	( cd ${.CURDIR}/..; make -DNOCLEAN buildkernel KERNCONF=${KERNCONF} )
   33: 
   34: buildiso:
   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}/usr/local/bin
   45: 	cp /usr/local/man/man8/mkisofs.8.gz ${ISOROOT}/usr/local/man/man8
   46: 	cp /usr/local/bin/cvsup ${ISOROOT}/usr/local/bin
   47: 	cp /usr/local/man/man1/cvsup.1.gz ${ISOROOT}/usr/local/man/man1
   48: 
   49: mkiso:
   50: 	( cd ${ISOROOT}; mkisofs -b boot/cdboot -no-emul-boot \
   51: 		-r -J -V DragonFly -o ${ISOFILE} . )
   52: 
   53: clean:
   54: 	if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi
   55: 	if [ -d ${ISOROOT} ]; then rm -rf ${ISOROOT}; fi
   56: 
   57: realclean:	clean
   58: 	rm -rf ${OBJSYS}/GENERIC
   59: 
   60: .include <bsd.prog.mk>