Home | History | Annotate | Line # | Download | only in bootfloppy-common
Makefile.inc revision 1.2
      1 #	$NetBSD: Makefile.inc,v 1.2 2001/10/21 23:23:22 jmc Exp $
      2 
      3 TOP=		${.CURDIR}/..
      4 
      5 .include "${TOP}/Makefile.inc"
      6 .include <bsd.subdir.mk>
      7 
      8 IMAGE?=		boot.fs
      9 KERNDIR?=	cd ${.CURDIR}/../kernel-ramdisk && ${PRINTOBJDIR}
     10 KERN?=		${KERNDIR}/netbsd.INSTALL.gz
     11 
     12 MDEC?=		${DESTDIR}/usr/mdec
     13 MKBOOTIMAGE?=	${MDEC}/mkbootimage
     14 BOOTLOADER?=	${MDEC}/boot_com0
     15 MDSETIMAGE?=	mdsetimage
     16 
     17 realall: ${IMAGE}
     18 
     19 ${IMAGE}: ${KERN}
     20 	${MKBOOTIMAGE} ${BOOTLOADER} ${.TARGET} ${KERN}
     21 
     22 .ifndef RELEASEDIR
     23 release:
     24 	@echo set RELEASEDIR first!
     25 	@false
     26 .else
     27 release:
     28 	-mkdir -p ${RELEASEDIR}/installation/floppy
     29 	cp -p ${IMAGE} ${RELEASEDIR}/installation/floppy
     30 	gzip -9c ${IMAGE} > ${RELEASEDIR}/installation/floppy/${IMAGE}.gz
     31 .endif
     32 
     33 clean cleandir distclean:
     34 	rm -f *.core ${IMAGE} ${CLEANFILES}
     35 
     36 .include <bsd.own.mk>
     37 .include <bsd.obj.mk>
     38