Source-Changes-HG archive

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

[src/trunk]: src/distrib/common allow IMAGE to be optional (and don't create ...



details:   https://anonhg.NetBSD.org/src/rev/6a8aeae96d18
branches:  trunk
changeset: 526306:6a8aeae96d18
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 02 13:05:49 2002 +0000

description:
allow IMAGE to be optional (and don't create rule for ${IMAGE}: if
it's not defined)

diffstat:

 distrib/common/Makefile.image |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 03e4231d14bc -r 6a8aeae96d18 distrib/common/Makefile.image
--- a/distrib/common/Makefile.image     Thu May 02 13:04:48 2002 +0000
+++ b/distrib/common/Makefile.image     Thu May 02 13:05:49 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.image,v 1.9 2002/04/26 15:50:27 lukem Exp $
+#      $NetBSD: Makefile.image,v 1.10 2002/05/02 13:05:49 lukem Exp $
 #
 # Makefile snippet to build a tree from the provided lists,
 # and make an ffs file system image from that tree
@@ -9,13 +9,13 @@
 #      NETBSDSRCDIR    top level of src tree (set by <bsd.own.mk>)
 #      CRUNCHBIN       name of crunchgen(1)ed binary
 #      LISTS           list file(s) to use
-#      IMAGE           name of target image
 #      IMAGEDEPENDS    depends for ${IMAGE}
 #      IMAGEENDIAN     endianness of ${IMAGE}
 #      IMAGESIZE       size of ${IMAGE}
 #      MTREECONF       mtree specfiles to use to build a master specfile
 #
 # Optional variables:
+#      IMAGE           name of target image
 #      DESTDIR         destination directory
 #      MAKEFS_FLAGS    extra options to ${MAKEFS}
 #      PARSELISTENV    environment variables to set for parselist.awk
@@ -49,6 +49,9 @@
        ${PARSELIST} -v mode=mtree ${LISTS} >> ${.TARGET}.tmp \
        && mv ${.TARGET}.tmp ${.TARGET}
 
+CLEANFILES+=   ${WORKBUILT} ${WORKSPEC} ${WORKSPEC}.tmp
+
+.if defined(IMAGE)                                             # {
 ${IMAGE}: ${WORKBUILT} ${WORKSPEC} ${IMAGEDEPENDS}
        @echo "Creating image into ${.TARGET}..."
        -rm -f ${.TARGET} ${.TARGET}.tmp
@@ -58,7 +61,8 @@
            ${MAKEFS_FLAGS} ${.TARGET}.tmp ${WORKDIR} \
        && mv -f ${.TARGET}.tmp ${.TARGET}
 
-CLEANFILES+=   ${IMAGE} ${IMAGE}.tmp ${WORKBUILT} ${WORKSPEC} ${WORKSPEC}.tmp
+CLEANFILES+=   ${IMAGE} ${IMAGE}.tmp
+.endif                                                         # }
 
 
 .if defined(IMAGETAR)                                          # {



Home | Main Index | Thread Index | Old Index