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