Print this page
    
9001 cdm is useless, remove it
9002 webrev should know how to get the git user name
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/tools/Makefile
          +++ new/usr/src/tools/Makefile
   1    1  #
   2    2  # CDDL HEADER START
   3    3  #
   4    4  # The contents of this file are subject to the terms of the
   5    5  # Common Development and Distribution License (the "License").
   6    6  # You may not use this file except in compliance with the License.
   7    7  #
   8    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9  # or http://www.opensolaris.org/os/licensing.
  10   10  # See the License for the specific language governing permissions
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  25   25  # Copyright 2016 Toomas Soome <tsoome@me.com>
  26   26  # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  27   27  #
  28   28  
  29   29  include ../Makefile.master
  30   30  
  31   31  # Bootstrap problem --
  32   32  # 'cw' must be built before anything else can be built.
  33   33  
  34   34  BOOT_SUBDIRS= \
  35   35          cw
  36   36  
  37   37  COMMON_SUBDIRS= \
  38   38          codereview \
  39   39          codesign \
  40   40          cscope-fast \
  41   41          ctf \
  42   42          env \
  43   43          findunref \
  44   44          install.bin \
  45   45          lintdump \
  46   46          make \
  47   47          ndrgen \
  48   48          onbld \
  49   49          protocmp \
  50   50          protolist \
  51   51          scripts
  52   52  
  53   53  #
  54   54  #  special versions of commands for use only in build
  55   55  #
  56   56  UNSHIPPED_SUBDIRS = \
  57   57          localedef \
  58   58          mandoc \
  59   59          tic \
  60   60          vtfontcvt \
  61   61          zic
  62   62  
  63   63  sparc_SUBDIRS= \
  64   64          chk4ubin \
  65   65          stabs \
  66   66          tokenize
  67   67  
  68   68  i386_SUBDIRS=           \
  69   69          aw              \
  70   70          elfextract      \
  71   71          mbh_patch       \
  72   72          btxld
  73   73  
  74   74  LINTSUBDIRS= \
  75   75          codereview \
  76   76          ctf \
  77   77          cw \
  78   78          findunref \
  79   79          lintdump \
  80   80          ndrgen \
  81   81          protocmp \
  82   82          protolist
  83   83  
  84   84  SUBDIRS= \
  85   85          $($(MACH)_SUBDIRS) \
  86   86          $(COMMON_SUBDIRS) \
  87   87          $(UNSHIPPED_SUBDIRS)
  88   88  
  89   89  include Makefile.tools
  90   90  
  91   91  ROOTDIRS= \
  92   92          $(ROOTOPT) \
  
    | 
      ↓ open down ↓ | 
    92 lines elided | 
    
      ↑ open up ↑ | 
  
  93   93          $(ROOTONBLD) \
  94   94          $(ROOTONBLD)/bin \
  95   95          $(ROOTONBLD)/bin/$(MACH) \
  96   96          $(ROOTONBLD)/lib \
  97   97          $(ROOTONBLD)/lib/$(MACH) \
  98   98          $(ROOTONBLD)/lib/$(MACH)/64 \
  99   99          $(ROOTONBLD)/lib/perl \
 100  100          $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
 101  101          $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
 102  102          $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
 103      -        $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/hgext \
 104  103          $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
 105  104          $(ROOTONBLD)/env \
 106  105          $(ROOTONBLD)/etc \
 107  106          $(ROOTONBLD)/etc/exception_lists \
 108  107          $(ROOTONBLD)/share \
 109  108          $(ROOTONBLD)/man \
 110  109          $(ROOTONBLD)/man/man1onbld
 111  110  
 112  111  all :=          TARGET= install
 113  112  install :=      TARGET= install
 114  113  clean :=        TARGET= clean
 115  114  clobber :=      TARGET= clobber
 116  115  lint :=         TARGET= lint
 117  116  _msg :=         TARGET= _msg
 118  117  
 119  118  .KEEP_STATE:
 120  119  
 121  120  #
 122  121  # Only create directories in the tools proto area when doing an actual
 123  122  # build, not a clean or clobber.
 124  123  #
 125  124  DOROOTDIRS= $(ROOTDIRS)
 126  125  clobber:= DOROOTDIRS=
 127  126  clean:= DOROOTDIRS=
 128  127  
 129  128  DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
 130  129  clobber:= DOROOTONBLDLIBPY=
 131  130  clean:= DOROOTONBLDLIBPY=
 132  131  
 133  132  all install: $(SUBDIRS)
 134  133  
 135  134  clean: $(SUBDIRS)
 136  135  
 137  136  clobber: $(SUBDIRS)
 138  137          $(RM) -rf $(TOOLS_PROTO)
 139  138  
 140  139  lint: $(LINTSUBDIRS)
 141  140  
 142  141  _msg: $(MSGSUBDIRS)
 143  142  
 144  143  .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
 145  144  
 146  145  $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
 147  146  
 148  147  $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
 149  148          @cd $@; pwd; $(MAKE) $(TARGET)
 150  149  
 151  150  $(ROOTDIRS):
 152  151          $(INS.dir)
 153  152  
 154  153  $(ROOTONBLDLIBPY): $(ROOTDIRS)
 155  154          $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
 156  155  
 157  156  make: ctf
 158  157  
 159  158  FRC:
  
    | 
      ↓ open down ↓ | 
    46 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX