Home | History | Annotate | Line # | Download | only in etc.i386
Makefile.inc revision 1.10
      1 #	$NetBSD: Makefile.inc,v 1.10 1998/06/28 09:38:42 fair Exp $
      2 #
      3 #	etc.i386/Makefile.inc -- i386-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
     17 	cd ${KERNCONFDIR} && config \
     18 		-b ${KERNOBJDIR}/${kernel} \
     19 		-s ${KERNSRCDIR} \
     20 		${kernel}
     21 	cd ${KERNOBJDIR}/${kernel} && make clean && make depend && make && \
     22 		cp netbsd ${DESTDIR}/snapshot/netbsd.${kernel}
     23 .endfor
     24 
     25 .endif	# DESTDIR check
     26