Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/stand Add handling of "make release".



details:   https://anonhg.NetBSD.org/src/rev/ae39b2367637
branches:  trunk
changeset: 486962:ae39b2367637
user:      he <he%NetBSD.org@localhost>
date:      Wed May 31 14:31:23 2000 +0000

description:
Add handling of "make release".

diffstat:

 sys/arch/hp300/stand/Makefile       |   4 +++-
 sys/arch/hp300/stand/Makefile.inc   |   4 +++-
 sys/arch/hp300/stand/inst/Makefile  |  13 ++++++++++++-
 sys/arch/hp300/stand/uboot/Makefile |  14 +++++++++++++-
 4 files changed, 31 insertions(+), 4 deletions(-)

diffs (79 lines):

diff -r fba6a29b4a01 -r ae39b2367637 sys/arch/hp300/stand/Makefile
--- a/sys/arch/hp300/stand/Makefile     Wed May 31 14:28:26 2000 +0000
+++ b/sys/arch/hp300/stand/Makefile     Wed May 31 14:31:23 2000 +0000
@@ -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>
diff -r fba6a29b4a01 -r ae39b2367637 sys/arch/hp300/stand/Makefile.inc
--- a/sys/arch/hp300/stand/Makefile.inc Wed May 31 14:28:26 2000 +0000
+++ b/sys/arch/hp300/stand/Makefile.inc Wed May 31 14:31:23 2000 +0000
@@ -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 @@
 # Make sure ${MKBOOT_PROG} is always available
 ${MKBOOT_PROG}:
        @cd ${MKBOOTDIR} && make depend && make
+
+release:
diff -r fba6a29b4a01 -r ae39b2367637 sys/arch/hp300/stand/inst/Makefile
--- a/sys/arch/hp300/stand/inst/Makefile        Wed May 31 14:28:26 2000 +0000
+++ b/sys/arch/hp300/stand/inst/Makefile        Wed May 31 14:31:23 2000 +0000
@@ -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 @@
        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"
diff -r fba6a29b4a01 -r ae39b2367637 sys/arch/hp300/stand/uboot/Makefile
--- a/sys/arch/hp300/stand/uboot/Makefile       Wed May 31 14:28:26 2000 +0000
+++ b/sys/arch/hp300/stand/uboot/Makefile       Wed May 31 14:31:23 2000 +0000
@@ -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 @@
        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"



Home | Main Index | Thread Index | Old Index