[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.5 and 1.13.12.1

version 1.5, 2003/03/11 07:18:38 version 1.13.12.1, 2008/06/02 13:21:12
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 .OBJDIR-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  
 _MAKEDEV2SPEC=  ${DISTRIBDIR}/common/makedev2spec.awk  
   
 MTREECONF+=     ${MAKEDEVSPEC}  MTREECONF+=     ${MAKEDEVSPEC}
   
 ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAKEDEVWRAP} ${_MAKEDEV2SPEC}  ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT}
           ${_MKTARGET_CREATE}
         -rm -f ${.TARGET} ${.TARGET}.tmp          -rm -f ${.TARGET} ${.TARGET}.tmp
         MAKEDEVSCRIPT=${_MAKEDEVSCRIPT:Q} \          MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
             sh ${_MAKEDEVWRAP} ${MAKEDEVTARGETS} | \              ${HOST_SH} ${MAKEDEVSCRIPT} -s ${MAKEDEVTARGETS} \
             awk -f ${_MAKEDEV2SPEC} > ${.TARGET}.tmp \              | sed -e '/^\. type=dir/d' -e 's,^\.,./dev,' > ${.TARGET}.tmp \
         && sort -o ${.TARGET} ${.TARGET}.tmp          && sort -o ${.TARGET} ${.TARGET}.tmp
   
 .else   # ! MAKEDEVTARGETS  .else   # ! MAKEDEVTARGETS
Line 53  ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAK
Line 57  ${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.5  
changed lines
  Added in v.1.13.12.1

CVSweb <webmaster@jp.NetBSD.org>