Add "release" targets.
This commit is contained in:
parent
d0f4ce78c4
commit
33842e660f
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.1 2001/02/01 06:09:38 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2002/02/21 15:07:36 tsutsui Exp $
|
||||
|
||||
SUBDIR= floppies
|
||||
|
||||
#TARGETS+= release
|
||||
TARGETS+= release
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/03/04 19:27:01 tsubai Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2002/02/21 15:07:38 tsutsui Exp $
|
||||
|
||||
SUBDIR= ramdisk bootfloppy
|
||||
|
||||
TARGETS+= release
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.3 2001/10/21 23:23:21 jmc Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2002/02/21 15:07:38 tsutsui Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
|
@ -67,6 +67,17 @@ netbsd.ram.gz: ${KERN} ${RAMDISK}
|
|||
gzip -9 netbsd.tmp
|
||||
mv netbsd.tmp.gz ${.TARGET}
|
||||
|
||||
.ifndef RELEASEDIR
|
||||
release:
|
||||
@echo set RELEASEDIR first!
|
||||
@false
|
||||
.else
|
||||
release:
|
||||
-mkdir -p ${RELEASEDIR}/installation/floppy
|
||||
cp -p ${IMAGE} ${RELEASEDIR}/installation/floppy
|
||||
gzip -c -9 ${IMAGE} > ${RELEASEDIR}/installation/floppy/${IMAGE}.gz
|
||||
.endif
|
||||
|
||||
clean cleandir distclean:
|
||||
rm -f *.core ${IMAGE} ${CLEANFILES}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.10 2002/02/03 16:35:11 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.11 2002/02/21 15:07:38 tsutsui Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
|
@ -55,6 +55,8 @@ HACKSRC=${TOP}/../../utils/libhack
|
|||
# turn off small gethostby* temporarily
|
||||
HACKOBJS:= ${HACKOBJS:Ngethost.o}
|
||||
|
||||
release:
|
||||
|
||||
clean cleandir distclean:
|
||||
if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi; \
|
||||
rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache
|
||||
|
|
Loading…
Reference in New Issue