Home | History | Annotate | Line # | Download | only in etc.sun3
Makefile.inc revision 1.5
      1 #	$NetBSD: Makefile.inc,v 1.5 1998/06/25 17:54:05 fair 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: netbsd
     18 	cp ${KERNOBJDIR}/GENERIC/netbsd \
     19 		${DESTDIR}/snapshot/netbsd.sun3
     20 	cp ${KERNOBJDIR}/GENERIC3X/netbsd \
     21 		${DESTDIR}/snapshot/netbsd.sun3x
     22 
     23 netbsd:
     24 .for kernel in GENERIC GENERIC3X
     25 	cd ${KERNCONFDIR} && config \
     26 		-b ${KERNOBJDIR}/${kernel} \
     27 		-s ${KERNSRCDIR} \
     28 		${kernel}
     29 	cd ${KERNOBJDIR}/${kernel} && make clean && make depend && make
     30 .endfor
     31 
     32 .endif	# DESTDIR check
     33