[BACK]Return to Makefile.makedev CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / distrib / common

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/distrib/common/Makefile.makedev between version 1.6 and 1.7

version 1.6, 2003/05/08 13:04:37 version 1.7, 2003/10/25 04:29:24
Line 1 
Line 1 
 #       $NetBSD$  #       $NetBSD$
 #  #
 # Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list  # Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list
 # (if set), otherwise copy etc.${MACHINE}/MAKEDEV to ./dev  # (if set), otherwise copy .OJBDIR-of-etc/MAKEDEV to ./dev
 #  #
 # If this is to be used with Makefile.image, then this file should be  # If this is to be used with Makefile.image, then this file should be
 # .include-d first.  # .include-d first.
Line 11 
Line 11 
 #       MACHINE         machine name (set externally by build framework)  #       MACHINE         machine name (set externally by build framework)
 #  #
 # Optional variables:  # Optional variables:
 #       MAKEDEVTARGETS  targets to create with etc/etc.${MACHINE}/MAKEDEV  #       MAKEDEVTARGETS  targets to create with .OBJDIR-of-etc/MAKEDEV
 #  #
 # Variables modified by this:  # Variables modified by this:
 #       MTREECONF       may get "devices.spec" added to it  #       MAKEDEVSCRIPT   path to .OBJDIR-of-etc/MAKEDEV
   #       MTREECONF       may get "devices.spec" added
   #       LISTS           may get "list.makedev" added
   #       IMAGEDEPENDS    may get ${MAKEDEVSCRIPT} added
   #       PARSELISTENV    may get MAKEDEVSCRIPT=... added
 #  #
   
 .if !defined(_MAKEFILE_MAKEDEV_)  .if !defined(_MAKEFILE_MAKEDEV_)
Line 23  _MAKEFILE_MAKEDEV_=1
Line 27  _MAKEFILE_MAKEDEV_=1
   
 MAKEDEVSPEC?=   devices.spec  MAKEDEVSPEC?=   devices.spec
   
   _MAKEDEVOBJDIR!=cd ${NETBSDSRCDIR}/etc && ${PRINTOBJDIR}
   MAKEDEVSCRIPT=  ${_MAKEDEVOBJDIR}/MAKEDEV
   
 CLEANFILES+=    ${MAKEDEVSPEC} ${MAKEDEVSPEC}.tmp  CLEANFILES+=    ${MAKEDEVSPEC} ${MAKEDEVSPEC}.tmp
   
   
Line 32  CLEANFILES+= ${MAKEDEVSPEC} ${MAKEDEVSPE
Line 39  CLEANFILES+= ${MAKEDEVSPEC} ${MAKEDEVSPE
 #       MAKEDEVTARGETS is set; add those devices to the mtree spec that's  #       MAKEDEVTARGETS is set; add those devices to the mtree spec that's
 #       used to build the file system  #       used to build the file system
 #  #
 _MAKEDEVSCRIPT= ${NETBSDSRCDIR}/etc/etc.${MACHINE}/MAKEDEV  
 _MAKEDEVWRAP=   ${DISTRIBDIR}/common/MAKEDEV.wrapper  _MAKEDEVWRAP=   ${DISTRIBDIR}/common/MAKEDEV.wrapper
 _MAKEDEV2SPEC=  ${DISTRIBDIR}/common/makedev2spec.awk  _MAKEDEV2SPEC=  ${DISTRIBDIR}/common/makedev2spec.awk
   
 MTREECONF+=     ${MAKEDEVSPEC}  MTREECONF+=     ${MAKEDEVSPEC}
   
 ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAKEDEVWRAP} ${_MAKEDEV2SPEC}  ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} ${_MAKEDEVWRAP} ${_MAKEDEV2SPEC}
         -rm -f ${.TARGET} ${.TARGET}.tmp          -rm -f ${.TARGET} ${.TARGET}.tmp
         MAKEDEVSCRIPT=${_MAKEDEVSCRIPT:Q} \          MAKEDEVSCRIPT=${MAKEDEVSCRIPT:Q} \
             ${HOST_SH} ${_MAKEDEVWRAP} ${MAKEDEVTARGETS} | \              ${HOST_SH} ${_MAKEDEVWRAP} ${MAKEDEVTARGETS} | \
             awk -f ${_MAKEDEV2SPEC} > ${.TARGET}.tmp \              awk -f ${_MAKEDEV2SPEC} > ${.TARGET}.tmp \
         && sort -o ${.TARGET} ${.TARGET}.tmp          && sort -o ${.TARGET} ${.TARGET}.tmp
Line 53  ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAK
Line 59  ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAK
 #       (effectively) running "cd /dev ; ./MAKEDEV all"  #       (effectively) running "cd /dev ; ./MAKEDEV all"
 #  #
 LISTS+=         ${DISTRIBDIR}/common/list.makedev  LISTS+=         ${DISTRIBDIR}/common/list.makedev
 IMAGEDEPENDS+=  ${NETBSDSRCDIR}/etc/etc.${MACHINE}/MAKEDEV  IMAGEDEPENDS+=  ${MAKEDEVSCRIPT}
   PARSELISTENV+=  MAKEDEVSCRIPT=${MAKEDEVSCRIPT:Q}
   
 ${MAKEDEVSPEC}: .PHONY  ${MAKEDEVSPEC}: .PHONY
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

CVSweb <webmaster@jp.NetBSD.org>