[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.1 and 1.9

version 1.1, 2002/02/08 02:18:53 version 1.9, 2004/01/01 14:34: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
   # .include-d first.
 #  #
 # Required variables:  # Required variables:
 #       _SRC_TOP_       top level of src tree (set by <bsd.own.mk>)  #       NETBSDSRCDIR    top level of src tree (set by <bsd.own.mk>)
 #       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_)
   _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 27  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= ${_SRC_TOP_}/etc/etc.${MACHINE}/MAKEDEV  
 _MAKEDEVWRAP=   ${DISTRIBDIR}/common/MAKEDEV.wrapper  
 _MAKEDEV2SPEC=  ${DISTRIBDIR}/common/makedev2spec.awk  
   
 MTREECONF+=     ${MAKEDEVSPEC}  MTREECONF+=     ${MAKEDEVSPEC}
   
 ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAKEDEVWRAP} ${_MAKEDEV2SPEC}  ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT}
         -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 's,^\.,./dev,' > ${.TARGET}.tmp \
         && sort -o ${.TARGET} ${.TARGET}.tmp          && sort -o ${.TARGET} ${.TARGET}.tmp
   
 .else   # ! MAKEDEVTARGETS  .else   # ! MAKEDEVTARGETS
   
 #  #
 #       MAKEDEVTARGETS isn't set; copy in /dev/MAKEDEV and rely upon  #       MAKEDEVTARGETS isn't set; copy in /dev/MAKEDEV and rely upon
 #       init(8) to mount an mfs /dev and recreated the devices  #       init(8) to mount an mfs /dev and recreate the devices by
   #       (effectively) running "cd /dev ; ./MAKEDEV all"
 #  #
 LISTS+=         ${DISTRIBDIR}/common/list.makedev  LISTS+=         ${DISTRIBDIR}/common/list.makedev
 IMAGEDEPENDS+=  ${_SRC_TOP_}/etc/etc.${MACHINE}/MAKEDEV  IMAGEDEPENDS+=  ${MAKEDEVSCRIPT}
   PARSELISTENV+=  MAKEDEVSCRIPT=${MAKEDEVSCRIPT:Q}
   
 ${MAKEDEVSPEC}: .PHONY  ${MAKEDEVSPEC}: .PHONY
   
 .endif  # ! MAKEDEVTARGETS  .endif  # ! MAKEDEVTARGETS
   
   
   .endif  # _MAKEFILE_MAKEDEV_

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>