Home | History | Annotate | Line # | Download | only in etc.sparc
Makefile.inc revision 1.10
      1 #	$NetBSD: Makefile.inc,v 1.10 1998/06/24 08:15:47 fair Exp $
      2 #
      3 #	etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
      4 #
      5 
      6 .ifdef DESTDIR
      7 
      8 # the regular expression does a basename(1) on .CURDIR so that we don't
      9 # have to keep looking up .. at compile time.
     10 
     11 KERNSRCDIR?=	${.CURDIR:C/[^\/]+$//}sys
     12 KERNOBJDIR?=	${KERNSRCDIR}/arch/${MACHINE}/compile
     13 KERNCONFDIR?=	${KERNSRCDIR}/arch/${MACHINE}/conf
     14 
     15 snap_md:
     16 .for kernel in GENERIC GENERIC_SCSI3
     17 	cd ${KERNCONFDIR} && config \
     18 		-b ${KERNOBJDIR}/${kernel} \
     19 		-s ${KERNSRCDIR} \
     20 		${kernel}
     21 	cd ${KERNOBJDIR}/${kernel} && make clean && make depend && make
     22 .endfor
     23 	cp ${KERNOBJDIR}/GENERIC/netbsd \
     24 		${DESTDIR}/snapshot/netbsd
     25 	cp ${KERNOBJDIR}/GENERIC_SCSI3/netbsd \
     26 		${DESTDIR}/snapshot/netbsd.scsi3
     27 
     28 .endif	# DESTDIR check
     29