0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# CDDL HEADER START
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# The contents of this file are subject to the terms of the
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# Common Development and Distribution License (the "License").
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# You may not use this file except in compliance with the License.
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# See the License for the specific language governing permissions
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# and limitations under the License.
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# When distributing Covered Code, include this CDDL HEADER in each
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# If applicable, add the following below this CDDL HEADER, with the
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# fields enclosed by brackets "[]" replaced with your own identifying
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# information: Portions Copyright [yyyy] [name of copyright owner]
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# CDDL HEADER END
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici# Copyright 2010, Richard Lowe
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin BriciCLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin BriciROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin BriciROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Briciall: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Briciinstall: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici # Check for shell lint and fail if we hit warnings
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici { print -r -- "$${shlintout}" ; false ; } || true
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
0c448f34ce72b04023b6570ec3cacebd668c2b27Alin Brici sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly