Print this page
    
NEX-1666 More maintainable ips2deb
NEX-2266 Shouldn't use mandoc binary from proto area during the build
    
      
        | 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
  
    | 
      ↓ open down ↓ | 
    13 lines elided | 
    
      ↑ open up ↑ | 
  
  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 +# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  24   25  # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  25   26  # Copyright 2016 Toomas Soome <tsoome@me.com>
  26   27  # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  27   28  #
  28   29  
  29   30  include ../Makefile.master
  30   31  
  31   32  # Bootstrap problem: 'cw' must be built before anything else can be built.
  32   33  # 'install.bin' should be built next, being the 'install' target dependency
  33   34  # for everything else.
  34   35  #
  35   36  # Because of somewhat cyclic dependency between them, both cw and install.bin
  36   37  # override the way we install binaries in their Makefiles.
  37   38  BOOT_SUBDIRS= \
  38   39          cw \
  
    | 
      ↓ open down ↓ | 
    5 lines elided | 
    
      ↑ open up ↑ | 
  
  39   40          .WAIT \
  40   41          install.bin
  41   42  
  42   43  COMMON_SUBDIRS= \
  43   44          codereview \
  44   45          codesign \
  45   46          cscope-fast \
  46   47          ctf \
  47   48          env \
  48   49          findunref \
       50 +        ips2deb \
  49   51          lintdump \
  50   52          make \
  51   53          ndrgen \
  52   54          onbld \
  53   55          protocmp \
  54   56          protolist \
  55   57          scripts
  56   58  
  57   59  #
  58   60  #  special versions of commands for use only in build
  59   61  #
  60   62  UNSHIPPED_SUBDIRS = \
  61   63          localedef \
  62   64          mandoc \
  63   65          tic \
  64   66          vtfontcvt \
  65   67          zic
  66   68  
  67   69  sparc_SUBDIRS= \
  68   70          chk4ubin \
  69   71          stabs \
  70   72          tokenize
  71   73  
  72   74  i386_SUBDIRS=           \
  73   75          aw              \
  74   76          elfextract      \
  75   77          mbh_patch       \
  76   78          btxld
  77   79  
  78   80  LINTSUBDIRS= \
  79   81          codereview \
  80   82          ctf \
  81   83          cw \
  82   84          findunref \
  83   85          lintdump \
  84   86          ndrgen \
  85   87          protocmp \
  86   88          protolist
  87   89  
  88   90  SUBDIRS= \
  89   91          $($(MACH)_SUBDIRS) \
  90   92          $(COMMON_SUBDIRS) \
  91   93          $(UNSHIPPED_SUBDIRS)
  92   94  
  93   95  include Makefile.tools
  94   96  
  95   97  ROOTDIRS= \
  96   98          $(ROOTOPT) \
  97   99          $(ROOTONBLD) \
  98  100          $(ROOTONBLD)/bin \
  99  101          $(ROOTONBLD)/bin/$(MACH) \
 100  102          $(ROOTONBLD)/lib \
 101  103          $(ROOTONBLD)/lib/$(MACH) \
 102  104          $(ROOTONBLD)/lib/$(MACH)/64 \
 103  105          $(ROOTONBLD)/lib/perl \
 104  106          $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
 105  107          $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
 106  108          $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
 107  109          $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
 108  110          $(ROOTONBLD)/env \
 109  111          $(ROOTONBLD)/etc \
 110  112          $(ROOTONBLD)/etc/exception_lists \
 111  113          $(ROOTONBLD)/share \
 112  114          $(ROOTONBLD)/man \
 113  115          $(ROOTONBLD)/man/man1onbld
 114  116  
 115  117  all :=          TARGET= install
 116  118  install :=      TARGET= install
 117  119  clean :=        TARGET= clean
 118  120  clobber :=      TARGET= clobber
 119  121  lint :=         TARGET= lint
 120  122  _msg :=         TARGET= _msg
 121  123  
 122  124  .KEEP_STATE:
 123  125  
 124  126  #
 125  127  # Only create directories in the tools proto area when doing an actual
 126  128  # build, not a clean or clobber.
 127  129  #
 128  130  DOROOTDIRS= $(ROOTDIRS)
 129  131  clobber:= DOROOTDIRS=
 130  132  clean:= DOROOTDIRS=
 131  133  
 132  134  DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
 133  135  clobber:= DOROOTONBLDLIBPY=
 134  136  clean:= DOROOTONBLDLIBPY=
 135  137  
 136  138  all install: $(SUBDIRS)
 137  139  
 138  140  clean: $(SUBDIRS)
 139  141  
 140  142  clobber: $(SUBDIRS)
 141  143          $(RM) -rf $(TOOLS_PROTO)
 142  144  
 143  145  lint: $(LINTSUBDIRS)
 144  146  
 145  147  _msg: $(MSGSUBDIRS)
 146  148  
 147  149  .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
 148  150  
 149  151  $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
 150  152  
 151  153  $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
 152  154          @cd $@; pwd; $(MAKE) $(TARGET)
 153  155  
 154  156  # Assume we don't have the install.bin available yet
 155  157  $(ROOTDIRS):
 156  158          $(MKDIR) -p -m $(DIRMODE) $@
 157  159  
 158  160  $(ROOTONBLDLIBPY): $(ROOTDIRS)
 159  161          $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
 160  162  
 161  163  make: ctf
 162  164  
 163  165  FRC:
  
    | 
      ↓ open down ↓ | 
    105 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX