Print this page
8992 checkproto is useless and can be deleted
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/scripts/Makefile
+++ new/usr/src/tools/scripts/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
24 24 # Copyright 2010, Richard Lowe
25 25
26 26 SHELL=/usr/bin/ksh93
27 27
28 28 SHFILES= \
29 29 Install \
30 30 bldenv \
31 31 build_cscope \
32 32 bringovercheck \
33 33 checkpaths \
34 - checkproto \
35 34 cstyle \
36 35 elfcmp \
37 36 flg.flp \
38 37 genoffsets \
39 38 hgsetup \
40 39 nightly \
41 40 onu \
42 41 protocmp.terse \
43 42 sccscheck \
44 43 webrev \
45 44 which_scm \
46 45 ws \
47 46 xref
48 47
49 48 PERLFILES= \
50 49 check_rtime \
51 50 find_elf \
52 51 interface_check \
53 52 interface_cmp \
54 53 jstyle \
55 54 validate_flg \
56 55 validate_paths \
57 56 wdiff
58 57
59 58 PERLMODULES= \
60 59 onbld_elfmod.pm \
61 60 onbld_elfmod_vertype.pm
62 61
63 62
64 63 PYFILES= \
65 64 cddlchk \
66 65 copyrightchk \
67 66 git-pbchk \
68 67 hdrchk \
69 68 hg-active \
70 69 mapfilechk \
71 70 validate_pkg \
72 71 wsdiff
73 72
74 73 SCRIPTLINKS= \
75 74 git-nits
76 75
77 76 MAN1ONBLDFILES= \
78 77 Install.1onbld \
79 78 bldenv.1onbld \
80 79 bringovercheck.1onbld \
81 80 cddlchk.1onbld \
82 81 checkpaths.1onbld \
83 82 check_rtime.1onbld \
84 83 cstyle.1onbld \
85 84 find_elf.1onbld \
86 85 flg.flp.1onbld \
87 86 git-pbchk.1onbld \
88 87 hdrchk.1onbld \
89 88 interface_check.1onbld \
90 89 interface_cmp.1onbld \
91 90 hgsetup.1onbld \
92 91 jstyle.1onbld \
93 92 mapfilechk.1onbld \
94 93 nightly.1onbld \
95 94 onu.1onbld \
96 95 sccscheck.1onbld \
97 96 webrev.1onbld \
98 97 which_scm.1onbld \
99 98 ws.1onbld \
100 99 wsdiff.1onbld \
101 100 xref.1onbld
102 101
103 102 MAN1ONBLDLINKS= \
104 103 git-nits.1onbld
105 104
106 105 MAKEFILES= \
107 106 xref.mk
108 107
109 108 ETCFILES= \
110 109 hgstyle \
111 110 its.conf \
112 111 its.reg
113 112
114 113 EXCEPTFILES= \
115 114 check_rtime \
116 115 interface_check \
117 116 interface_cmp
118 117
119 118 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
120 119
121 120 onu.sh: onu.sh.in
122 121 $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
123 122
124 123 include ../Makefile.tools
125 124
126 125 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
127 126 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
128 127
129 128 $(ROOTONBLDETCFILES) := FILEMODE= 644
130 129 $(ROOTONBLDEXCEPTFILES) := FILEMODE= 644
131 130 $(ROOTONBLDPERLMODULES) := FILEMODE= 644
132 131 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
133 132 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644
134 133
135 134 .KEEP_STATE:
136 135
137 136 all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
138 137 $(MAN1ONBLDFILES) $(MAKEFILES)
139 138
140 139 $(ROOTONBLDBIN)/git-nits:
141 140 $(RM) $(ROOTONBLDBIN)/git-nits
142 141 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
143 142
144 143 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
145 144 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
146 145 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
147 146
148 147 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
149 148 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \
150 149 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
151 150 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
152 151 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
153 152
154 153 clean:
155 154 $(RM) $(CLEANFILES)
156 155
157 156 bldenv: bldenv.sh stdenv.sh
158 157 $(RM) "$@"
159 158 sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
160 159 # Check for shell lint and fail if we hit warnings
161 160 shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
162 161 [[ "$${shlintout}" != "" ]] && \
163 162 { print -r -- "$${shlintout}" ; false ; } || true
164 163 $(CHMOD) +x "$@"
165 164
166 165 bldenv.1onbld: bldenv
167 166 $(RM) "$@"
168 167 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
169 168 sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
170 169 -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
171 170 -e 's/(1)/(1ONBLD)/' > "$@"
172 171
173 172 nightly: nightly.sh stdenv.sh
174 173 $(RM) "$@"
175 174 sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
176 175 $(CHMOD) +x "$@"
177 176
178 177 include ../Makefile.targ
179 178
↓ open down ↓ |
135 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX