Source-Changes-HG archive

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

[src/trunk]: src/distrib - replace image_md_post: target with IMAGE_MD_POST v...



details:   https://anonhg.NetBSD.org/src/rev/7e41228a21c6
branches:  trunk
changeset: 525477:7e41228a21c6
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Apr 12 03:21:09 2002 +0000

description:
- replace image_md_post: target with IMAGE_MD_POST variable, and use
  that after building ${IMAGE}
- use ${IMAGEBUILT} to ensure that IMAGE_MD_POST is only run if IMAGE changes

diffstat:

 distrib/amiga/miniroot/Makefile.inc   |   5 ++---
 distrib/hp300/miniroot/Makefile.inc   |   4 +---
 distrib/miniroot/Makefile             |  17 +++++++++--------
 distrib/mvme68k/miniroot/Makefile.inc |   5 +----
 distrib/pmax/miniroot/Makefile.inc    |   5 ++---
 distrib/sparc/miniroot/Makefile.inc   |  10 +++++-----
 distrib/sun2/miniroot/Makefile        |   5 ++---
 distrib/sun3/miniroot/Makefile        |   5 ++---
 distrib/vax/miniroot/Makefile.inc     |   5 ++---
 9 files changed, 26 insertions(+), 35 deletions(-)

diffs (176 lines):

diff -r f89972d52ac1 -r 7e41228a21c6 distrib/amiga/miniroot/Makefile.inc
--- a/distrib/amiga/miniroot/Makefile.inc       Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/amiga/miniroot/Makefile.inc       Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.7 2002/03/06 12:04:50 lukem Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2002/04/12 03:21:09 lukem Exp $
 
 IMAGESIZE=     5m
 IMAGEENDIAN=   be
@@ -8,5 +8,4 @@
                ${DESTDIR}/boot.amiga ${DESTDIR}/etc/spwd.db \
                ${KERNOBJDIR}/INSTALL/netbsd
 
-image_md_post:
-       dd if=${DESTDIR}/usr/mdec/bootxx_ffs of=${IMAGE} bs=8192 conv=notrunc
+IMAGE_MD_POST= dd if=${DESTDIR}/usr/mdec/bootxx_ffs of=${IMAGE} bs=8192 conv=notrunc
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/hp300/miniroot/Makefile.inc
--- a/distrib/hp300/miniroot/Makefile.inc       Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/hp300/miniroot/Makefile.inc       Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.6 2002/03/14 23:17:00 gmcgarry Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2002/04/12 03:21:10 lukem Exp $
 
 IMAGESIZE=     7m
 IMAGEENDIAN=   be
@@ -8,5 +8,3 @@
                ${DESTDIR}/etc/disktab \
                ${KERNOBJDIR}/INSTALL/netbsd \
                ${_SRC_TOP_}/share/termcap/termcap.src
-
-image_md_post:
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/miniroot/Makefile
--- a/distrib/miniroot/Makefile Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/miniroot/Makefile Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.56 2002/04/12 02:34:21 lukem Exp $
+#      $NetBSD: Makefile,v 1.57 2002/04/12 03:21:12 lukem Exp $
 
 .include <bsd.own.mk>
 .include "${_SRC_TOP_}/distrib/Makefile.inc"
@@ -23,20 +23,21 @@
 
 .include "${ARCHDIR}/Makefile.inc"
 
+IMAGEBUILT=    image.built
+CLEANFILES+=   ${IMAGEBUILT}
+IMAGE_MD_POST?=        true
 
-realall: check_DESTDIR .WAIT image
+realall: check_DESTDIR .WAIT ${IMAGEBUILT}
 
-release: check_RELEASEDIR .WAIT image
+release: check_RELEASEDIR .WAIT ${IMAGEBUILT}
        mkdir -p ${RELEASEDIR}/installation/miniroot
        gzip -c -9 < ${.OBJDIR}/miniroot.fs \
                > ${RELEASEDIR}/installation/miniroot/miniroot.fs.gz
        ${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot miniroot.fs.gz
 
-image: ${IMAGE} image_md_post
-
-image_md_post:
-# nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc
-
+${IMAGEBUILT}: ${IMAGE}
+       ${IMAGE_MD_POST} \
+       && touch ${IMAGEBUILT}
 
 .include "${DISTRIBDIR}/common/Makefile.crunch"
 .if defined(MAKEDEVTARGETS)
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/mvme68k/miniroot/Makefile.inc
--- a/distrib/mvme68k/miniroot/Makefile.inc     Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/mvme68k/miniroot/Makefile.inc     Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.5 2002/04/03 19:23:08 scw Exp $
+#      $NetBSD: Makefile.inc,v 1.6 2002/04/12 03:21:10 lukem Exp $
 
 IMAGESIZE=     7m
 MAKEFS_FLAGS=  -o density=4096
@@ -9,6 +9,3 @@
                ${KERNOBJDIR}/GENERIC/netbsd \
                ${_SRC_TOP_}/share/termcap/termcap.src
 LISTS+=                ${DISTRIBDIR}/common/list.sysinst
-
-image_md_post:
-
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/pmax/miniroot/Makefile.inc
--- a/distrib/pmax/miniroot/Makefile.inc        Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/pmax/miniroot/Makefile.inc        Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.8 2002/04/03 06:38:26 lukem Exp $
+#      $NetBSD: Makefile.inc,v 1.9 2002/04/12 03:21:11 lukem Exp $
 
 IMAGESIZE=     32m
 MAKEFS_FLAGS=  -f 15
@@ -13,5 +13,4 @@
                ${KERNOBJDIR}/GENERIC/netbsd.ecoff \
                ${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff
 
-image_md_post:
-       ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs
+IMAGE_MD_POST= ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/sparc/miniroot/Makefile.inc
--- a/distrib/sparc/miniroot/Makefile.inc       Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/sparc/miniroot/Makefile.inc       Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.3 2002/04/10 14:44:02 lukem Exp $
+#      $NetBSD: Makefile.inc,v 1.4 2002/04/12 03:21:11 lukem Exp $
 
 IMAGESIZE=     7296k
 MAKEFS_FLAGS=   -o density=4k
@@ -11,7 +11,7 @@
                ${DESTDIR}/usr/mdec/boot ${DESTDIR}/usr/share/misc/magic \
                ${KERNOBJDIR}/GENERIC/netbsd
 
-# XXXIMAGE: binstall needs to be MI and work on image files
-image_md_post:
-       ${DESTDIR}/usr/mdec/binstall -f miniroot.fs -m ${DESTDIR}/usr/mdec \
-           -i ${SPARCINSTALLBOOT} -v ffs ${TARGETDIR}
+# XXXDISTRIB: binstall needs to be MI and work on image files
+IMAGE_MD_POST= ${DESTDIR}/usr/mdec/binstall -f miniroot.fs \
+                   -m ${DESTDIR}/usr/mdec -i ${SPARCINSTALLBOOT} \
+                   -v ffs ${TARGETDIR}
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/sun2/miniroot/Makefile
--- a/distrib/sun2/miniroot/Makefile    Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/sun2/miniroot/Makefile    Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2002/03/06 12:14:26 lukem Exp $
+#      $NetBSD: Makefile,v 1.5 2002/04/12 03:21:11 lukem Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -82,8 +82,7 @@
 .else  # RELEASEDIR
 release: ${IMAGE}.gz
        -mkdir -p ${RELEASEDIR}/installation/miniroot
-       cp -p ${IMAGE}.gz \
-        ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz
+       ${RELINSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
 .endif # RELEASEDIR
 
 # Standard rules needed by the above...
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/sun3/miniroot/Makefile
--- a/distrib/sun3/miniroot/Makefile    Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/sun3/miniroot/Makefile    Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.22 2002/03/06 12:15:19 lukem Exp $
+#      $NetBSD: Makefile,v 1.23 2002/04/12 03:21:11 lukem Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -80,8 +80,7 @@
 .else  # RELEASEDIR
 release: ${IMAGE}.gz
        -mkdir -p ${RELEASEDIR}/installation/miniroot
-       cp -p ${IMAGE}.gz \
-        ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz
+       ${RELINSTALL} ${IMAGE}.gz ${RELEASEDIR}/installation/miniroot
 .endif # RELEASEDIR
 
 # Standard rules needed by the above...
diff -r f89972d52ac1 -r 7e41228a21c6 distrib/vax/miniroot/Makefile.inc
--- a/distrib/vax/miniroot/Makefile.inc Fri Apr 12 03:15:20 2002 +0000
+++ b/distrib/vax/miniroot/Makefile.inc Fri Apr 12 03:21:09 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.9 2002/04/03 06:06:43 lukem Exp $
+# $NetBSD: Makefile.inc,v 1.10 2002/04/12 03:21:12 lukem Exp $
 
 IMAGESIZE=     7m
 MAKEFS_FLAGS=  -o density=5k
@@ -13,5 +13,4 @@
                ${KERNOBJDIR}/GENERIC/netbsd \
                ${_SRC_TOP_}/share/termcap/termcap.src
 
-image_md_post:
-       ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/xxboot
+IMAGE_MD_POST= ${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/xxboot



Home | Main Index | Thread Index | Old Index