17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 578fe7221Sdduvall# Common Development and Distribution License (the "License"). 678fe7221Sdduvall# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22b83ec4edSjmcp# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 237c478bd9Sstevel@tonic-gate# 242f54b716SRichard Lowe# Copyright 2010, Richard Lowe 257c478bd9Sstevel@tonic-gate 2663df1173SpetedeSHELL=/usr/bin/ksh93 2763df1173Spetede 287c478bd9Sstevel@tonic-gateSHFILES= \ 297c478bd9Sstevel@tonic-gate Install \ 304e5b757fSkupfer bindrop \ 317c478bd9Sstevel@tonic-gate bldenv \ 327c478bd9Sstevel@tonic-gate build_cscope \ 33733ed737Ssommerfe bringovercheck \ 347c478bd9Sstevel@tonic-gate checkpaths \ 357c478bd9Sstevel@tonic-gate checkproto \ 36597bd30bSMike Kupfer cryptodrop \ 377c478bd9Sstevel@tonic-gate cstyle \ 387c478bd9Sstevel@tonic-gate elfcmp \ 397c478bd9Sstevel@tonic-gate flg.flp \ 407c478bd9Sstevel@tonic-gate genoffsets \ 41cdf0c1d5Smjnelson hgsetup \ 427c478bd9Sstevel@tonic-gate nightly \ 43ead1f93eSLiane Praza onu \ 447c478bd9Sstevel@tonic-gate protocmp.terse \ 45733ed737Ssommerfe sccscheck \ 467c478bd9Sstevel@tonic-gate webrev \ 47cdf0c1d5Smjnelson which_scm \ 487c478bd9Sstevel@tonic-gate ws \ 497c478bd9Sstevel@tonic-gate xref 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gatePERLFILES= \ 527c478bd9Sstevel@tonic-gate check_rtime \ 5375ce41a5SAli Bahrami find_elf \ 5475ce41a5SAli Bahrami interface_check \ 5575ce41a5SAli Bahrami interface_cmp \ 5678fe7221Sdduvall jstyle \ 574e5b757fSkupfer mkreadme_osol \ 584e5b757fSkupfer mktpl \ 597c478bd9Sstevel@tonic-gate validate_flg \ 607c478bd9Sstevel@tonic-gate validate_paths \ 617c478bd9Sstevel@tonic-gate wdiff 627c478bd9Sstevel@tonic-gate 6375ce41a5SAli BahramiPERLMODULES= \ 645253169eSAli Bahrami onbld_elfmod.pm \ 655253169eSAli Bahrami onbld_elfmod_vertype.pm 6675ce41a5SAli Bahrami 6775ce41a5SAli Bahrami 6896ccc8cbSesaxePYFILES= \ 69cdf0c1d5Smjnelson cddlchk \ 70cdf0c1d5Smjnelson copyrightchk \ 71*8bcea973SRichard Lowe git-pbchk \ 72cdf0c1d5Smjnelson hdrchk \ 73cdf0c1d5Smjnelson hg-active \ 74bfed486aSAli Bahrami mapfilechk \ 75ead1f93eSLiane Praza validate_pkg \ 7696ccc8cbSesaxe wsdiff 7796ccc8cbSesaxe 78*8bcea973SRichard LoweSCRIPTLINKS= \ 79*8bcea973SRichard Lowe git-nits 80*8bcea973SRichard Lowe 817c478bd9Sstevel@tonic-gateMAN1FILES= \ 827c478bd9Sstevel@tonic-gate Install.1 \ 837c478bd9Sstevel@tonic-gate bldenv.1 \ 84733ed737Ssommerfe bringovercheck.1 \ 851f1defa1Salanbur cddlchk.1 \ 867c478bd9Sstevel@tonic-gate checkpaths.1 \ 877c478bd9Sstevel@tonic-gate check_rtime.1 \ 887c478bd9Sstevel@tonic-gate cstyle.1 \ 8975ce41a5SAli Bahrami find_elf.1 \ 907c478bd9Sstevel@tonic-gate flg.flp.1 \ 91*8bcea973SRichard Lowe git-pbchk.1 \ 92cdf0c1d5Smjnelson hdrchk.1 \ 9375ce41a5SAli Bahrami interface_check.1 \ 9475ce41a5SAli Bahrami interface_cmp.1 \ 95cdf0c1d5Smjnelson hgsetup.1 \ 9678fe7221Sdduvall jstyle.1 \ 97bfed486aSAli Bahrami mapfilechk.1 \ 987c478bd9Sstevel@tonic-gate nightly.1 \ 99ead1f93eSLiane Praza onu.1 \ 100733ed737Ssommerfe sccscheck.1 \ 1017c478bd9Sstevel@tonic-gate webrev.1 \ 102cdf0c1d5Smjnelson which_scm.1 \ 1037c478bd9Sstevel@tonic-gate ws.1 \ 10496ccc8cbSesaxe wsdiff.1 \ 1057c478bd9Sstevel@tonic-gate xref.1 1067c478bd9Sstevel@tonic-gate 107*8bcea973SRichard LoweMAN1LINKS= \ 108*8bcea973SRichard Lowe git-nits.1 109*8bcea973SRichard Lowe 1107c478bd9Sstevel@tonic-gateMAKEFILES= \ 1117c478bd9Sstevel@tonic-gate xref.mk 1127c478bd9Sstevel@tonic-gate 11393af10a4SMark J. NelsonETCFILES= \ 1140fd2682eSMark J. Nelson hgstyle \ 1150fd2682eSMark J. Nelson its.conf \ 1160fd2682eSMark J. Nelson its.reg 11793af10a4SMark J. Nelson 11875ce41a5SAli BahramiEXCEPTFILES= \ 11975ce41a5SAli Bahrami check_rtime \ 12075ce41a5SAli Bahrami interface_check \ 12175ce41a5SAli Bahrami interface_cmp 12275ce41a5SAli Bahrami 123cdf0c1d5SmjnelsonCLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gateinclude ../Makefile.tools 1267c478bd9Sstevel@tonic-gate 127*8bcea973SRichard LoweROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%) 128*8bcea973SRichard LoweROOTONBLDMAN1LINKS = $(MAN1LINKS:%=$(ROOTONBLDMAN1)/%) 12993af10a4SMark J. Nelson 13093af10a4SMark J. Nelson$(ROOTONBLDETCFILES) := FILEMODE= 644 13175ce41a5SAli Bahrami$(ROOTONBLDEXCEPTFILES) := FILEMODE= 644 13275ce41a5SAli Bahrami$(ROOTONBLDPERLMODULES) := FILEMODE= 644 1337c478bd9Sstevel@tonic-gate$(ROOTONBLDMAKEFILES) := FILEMODE= 644 13493af10a4SMark J. Nelson$(ROOTONBLDMAN1FILES) := FILEMODE= 644 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gate.KEEP_STATE: 1377c478bd9Sstevel@tonic-gate 13875ce41a5SAli Bahramiall: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \ 13975ce41a5SAli Bahrami $(MAN1FILES) $(MAKEFILES) 1407c478bd9Sstevel@tonic-gate 141*8bcea973SRichard Lowe$(ROOTONBLDBIN)/git-nits: 142*8bcea973SRichard Lowe $(RM) $(ROOTONBLDBIN)/git-nits 143*8bcea973SRichard Lowe $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits 144*8bcea973SRichard Lowe 145*8bcea973SRichard Lowe$(ROOTONBLDMAN1)/git-nits.1: 146*8bcea973SRichard Lowe $(RM) $(ROOTONBLDMAN1)/git-nits.1 147*8bcea973SRichard Lowe $(SYMLINK) git-pbchk.1 $(ROOTONBLDMAN1)/git-nits.1 148*8bcea973SRichard Lowe 1497c478bd9Sstevel@tonic-gateinstall: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \ 15075ce41a5SAli Bahrami $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \ 151*8bcea973SRichard Lowe $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1FILES) \ 152*8bcea973SRichard Lowe $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \ 153*8bcea973SRichard Lowe $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1LINKS) 1547c478bd9Sstevel@tonic-gate 1557c478bd9Sstevel@tonic-gateclean: 1567c478bd9Sstevel@tonic-gate $(RM) $(CLEANFILES) 1577c478bd9Sstevel@tonic-gate 1581fe69678Skupferbldenv: bldenv.sh stdenv.sh 15963df1173Spetede $(RM) "$@" 16063df1173Spetede sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@" 1612f54b716SRichard Lowe # Check for shell lint and fail if we hit warnings 16263df1173Spetede shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \ 16363df1173Spetede [[ "$${shlintout}" != "" ]] && \ 16463df1173Spetede { print -r -- "$${shlintout}" ; false ; } || true 16563df1173Spetede $(CHMOD) +x "$@" 16663df1173Spetede 16763df1173Spetedebldenv.1: bldenv 16863df1173Spetede $(RM) "$@" 16963df1173Spetede (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \ 17063df1173Spetede sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@" 1711fe69678Skupfer 1721fe69678Skupfernightly: nightly.sh stdenv.sh 17363df1173Spetede $(RM) "$@" 1741fe69678Skupfer sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly 17563df1173Spetede $(CHMOD) +x "$@" 1761fe69678Skupfer 1777c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 1787c478bd9Sstevel@tonic-gate 179