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]
22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2010, Richard Lowe
66 onbld_elfmod_vertype.pm
116 CLEANFILES
= $(SHFILES
) $(PERLFILES
) $(PYFILES
) bldenv
.1
118 include ..
/Makefile.tools
121 $(ROOTONBLDETCFILES
) := FILEMODE
= 644
122 $(ROOTONBLDEXCEPTFILES
) := FILEMODE
= 644
123 $(ROOTONBLDPERLMODULES
) := FILEMODE
= 644
124 $(ROOTONBLDMAKEFILES
) := FILEMODE
= 644
125 $(ROOTONBLDMAN1FILES
) := FILEMODE
= 644
129 all: $(SHFILES
) $(PERLFILES
) $(PERLMODULES
) $(PYFILES
) \
130 $(MAN1FILES
) $(MAKEFILES
)
132 install: all .WAIT
$(ROOTONBLDSHFILES
) $(ROOTONBLDPERLFILES
) \
133 $(ROOTONBLDPERLMODULES
) $(ROOTONBLDPYFILES
) \
134 $(ROOTONBLDMAN1FILES
) $(ROOTONBLDMAKEFILES
) \
135 $(ROOTONBLDETCFILES
) $(ROOTONBLDEXCEPTFILES
)
140 bldenv
: bldenv.sh stdenv.sh
142 sed
-e
'/# STDENV_START/ r stdenv.sh' bldenv.sh
> "$@"
143 # Check for shell lint and fail if we hit warnings
144 shlintout
="$$( /usr/bin/ksh93 -n "$@
" 2>&1 )" ; \
145 [[ "$${shlintout}" != "" ]] && \
146 { print -r
-- "$${shlintout}" ; false
; } || true
151 (set
+o errexit
; ksh93
$?
--nroff
; true
) 2>&1 | \
152 sed
's/\.DS/.nf/g;s/\.DE/.fi/' > "$@"
154 nightly
: nightly.sh stdenv.sh
156 sed
-e
'/# STDENV_START/ r stdenv.sh' nightly.sh
> nightly
159 include ..
/Makefile.targ