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