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
61 onbld_elfmod_vertype.pm
80 bringovercheck
.1onbld \
89 interface_check
.1onbld \
90 interface_cmp
.1onbld \
119 CLEANFILES
= $(SHFILES
) $(PERLFILES
) $(PYFILES
) bldenv
.1onbld onu.sh
122 $(SED
) -e
"s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in
> $@
124 include ..
/Makefile.tools
126 ROOTONBLDSCRIPTLINKS
= $(SCRIPTLINKS
:%=$(ROOTONBLDBIN
)/%)
127 ROOTONBLDMAN1ONBLDLINKS
= $(MAN1ONBLDLINKS
:%=$(ROOTONBLDMAN1ONBLD
)/%)
129 $(ROOTONBLDETCFILES
) := FILEMODE
= 644
130 $(ROOTONBLDEXCEPTFILES
) := FILEMODE
= 644
131 $(ROOTONBLDPERLMODULES
) := FILEMODE
= 644
132 $(ROOTONBLDMAKEFILES
) := FILEMODE
= 644
133 $(ROOTONBLDMAN1ONBLDFILES
) := FILEMODE
= 644
137 all: $(SHFILES
) $(PERLFILES
) $(PERLMODULES
) $(PYFILES
) \
138 $(MAN1ONBLDFILES
) $(MAKEFILES
)
140 $(ROOTONBLDBIN
)/git-nits
:
141 $(RM
) $(ROOTONBLDBIN
)/git-nits
142 $(SYMLINK
) git-pbchk
$(ROOTONBLDBIN
)/git-nits
144 $(ROOTONBLDMAN1ONBLD
)/git-nits
.1onbld
:
145 $(RM
) $(ROOTONBLDMAN1ONBLD
)/git-nits
.1onbld
146 $(SYMLINK
) git-pbchk
.1onbld
$(ROOTONBLDMAN1ONBLD
)/git-nits
.1onbld
148 install: all .WAIT
$(ROOTONBLDSHFILES
) $(ROOTONBLDPERLFILES
) \
149 $(ROOTONBLDPERLMODULES
) $(ROOTONBLDPYFILES
) \
150 $(ROOTONBLDSCRIPTLINKS
) $(ROOTONBLDMAN1ONBLDFILES
) \
151 $(ROOTONBLDMAKEFILES
) $(ROOTONBLDETCFILES
) \
152 $(ROOTONBLDEXCEPTFILES
) $(ROOTONBLDMAN1ONBLDLINKS
)
157 bldenv
: bldenv.sh stdenv.sh
159 sed
-e
'/# STDENV_START/ r stdenv.sh' bldenv.sh
> "$@"
160 # Check for shell lint and fail if we hit warnings
161 shlintout
="$$( /usr/bin/ksh93 -n "$@
" 2>&1 )" ; \
162 [[ "$${shlintout}" != "" ]] && \
163 { print -r
-- "$${shlintout}" ; false
; } || true
166 bldenv
.1onbld
: bldenv
168 (set
+o errexit
; ksh93
$?
--nroff
; true
) 2>&1 | \
169 sed
-e
's/\.DS/.nf/g;s/\.DE/.fi/' \
170 -e
's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
171 -e
's/(1)/(1ONBLD)/' > "$@"
173 nightly
: nightly.sh stdenv.sh
175 sed
-e
'/# STDENV_START/ r stdenv.sh' nightly.sh
> nightly
178 include ..
/Makefile.targ