Add handling of "make release".

This commit is contained in:
he 2000-05-31 14:31:23 +00:00
parent 0e18211390
commit e486b03d73
4 changed files with 31 additions and 4 deletions

View File

@ -1,6 +1,8 @@
# $NetBSD: Makefile,v 1.23 1997/02/04 03:51:37 thorpej Exp $
# $NetBSD: Makefile,v 1.24 2000/05/31 14:31:23 he Exp $
# mkboot is first; it's needed by the boot programs
SUBDIR= mkboot inst uboot installboot
TARGETS += release
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.8 1999/02/06 21:19:24 thorpej Exp $
# $NetBSD: Makefile.inc,v 1.9 2000/05/31 14:31:23 he Exp $
BINDIR= /usr/mdec
@ -37,3 +37,5 @@ MKBOOT_PROG= ${MKBOOTOBJDIR}/mkboot
# Make sure ${MKBOOT_PROG} is always available
${MKBOOT_PROG}:
@cd ${MKBOOTDIR} && make depend && make
release:

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 1999/12/14 20:55:28 thorpej Exp $
# $NetBSD: Makefile,v 1.3 2000/05/31 14:31:24 he Exp $
PROGAOUT= inst
PROGSOURCE= inst.c
@ -14,4 +14,15 @@ install:
rm -f ${DESTDIR}${BINDIR}/rbootd/SYS_INST
ln ${DESTDIR}${BINDIR}/inst.lif ${DESTDIR}${BINDIR}/rbootd/SYS_INST
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
release: inst.lif
mkdir -p $(RELEASEDIR)/installation/misc
rm -f $(RELEASEDIR)/installation/misc/SYS_INST
${INSTALL} -c -m 444 inst.lif $(RELEASEDIR)/installation/misc/SYS_INST
.endif # RELEASEDIR check
.include "../Makefile.buildboot"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 1999/12/14 20:55:28 thorpej Exp $
# $NetBSD: Makefile,v 1.3 2000/05/31 14:31:25 he Exp $
PROGAOUT= uboot
PROGSOURCE= uboot.c tgets.c
@ -26,4 +26,16 @@ install:
rm -f ${DESTDIR}${BINDIR}/rbootd/SYS_UBOOT
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/rbootd/SYS_UBOOT
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
release: uboot.lif
mkdir -p $(RELEASEDIR)/installation/misc
rm -f $(RELEASEDIR)/installation/misc/SYS_UBOOT
${INSTALL} -c -m 444 uboot.lif $(RELEASEDIR)/installation/misc/SYS_UBOOT
.endif # RELEASEDIR check
.include "../Makefile.buildboot"