4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2016 Toomas Soome <tsoome@me.com>
28 include ..
/Makefile.master
30 # Bootstrap problem --
31 # 'cw' must be built before anything else can be built.
56 # special versions of commands for use only in build
90 include Makefile.tools
96 $(ROOTONBLD
)/bin
/$(MACH
) \
98 $(ROOTONBLD
)/lib
/$(MACH
) \
99 $(ROOTONBLD
)/lib
/$(MACH
)/64 \
100 $(ROOTONBLD
)/lib
/perl \
101 $(ROOTONBLD
)/lib
/python
$(PYTHON_VERSION
) \
102 $(ROOTONBLD
)/lib
/python
$(PYTHON_VERSION
)/onbld \
103 $(ROOTONBLD
)/lib
/python
$(PYTHON_VERSION
)/onbld
/Checks \
104 $(ROOTONBLD
)/lib
/python
$(PYTHON_VERSION
)/onbld
/hgext \
105 $(ROOTONBLD
)/lib
/python
$(PYTHON_VERSION
)/onbld
/Scm \
108 $(ROOTONBLD
)/etc
/exception_lists \
112 $(ROOTONBLD
)/man
/man1onbld
114 all := TARGET
= install
115 install := TARGET
= install
116 clean := TARGET
= clean
117 clobber := TARGET
= clobber
124 # Only create directories in the tools proto area when doing an actual
125 # build, not a clean or clobber.
127 DOROOTDIRS
= $(ROOTDIRS
)
128 clobber:= DOROOTDIRS
=
131 all install: $(SUBDIRS
)
136 $(RM
) -rf
$(TOOLS_PROTO
)
142 .PARALLEL
: $(SUBDIRS
) $(CLOSED_SUBDIRS
)
144 $(SUBDIRS
) $(CLOSED_SUBDIRS
): $(BOOT_SUBDIRS
)
146 $(BOOT_SUBDIRS
) $(SUBDIRS
): $$(DOROOTDIRS
) $(ROOTONBLDLIBPY
) FRC
147 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
152 $(ROOTONBLDLIBPY
): $(ROOTDIRS
)
153 $(RM
) -r
$@
; $(SYMLINK
) python
$(PYTHON_VERSION
) $@