Print this page
XXXX don't ship bldenv and nightly
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 #
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
22 22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Copyright 2010, Richard Lowe
25 25 #
26 26 # Copyright 2018 Joyent, Inc.
27 27
28 28 SHELL=/usr/bin/ksh93
29 29
30 30 SHFILES= \
31 31 Install \
32 - bldenv \
33 32 build_cscope \
34 33 bringovercheck \
35 34 checkpaths \
36 35 cstyle \
37 36 elfcmp \
38 37 flg.flp \
39 38 genoffsets \
40 - nightly \
41 39 onu \
42 40 protocmp.terse \
43 41 sccscheck \
44 42 webrev \
45 43 which_scm \
46 44 ws \
47 45 xref
48 46
49 47 PERLFILES= \
50 48 check_rtime \
51 49 find_elf \
52 50 interface_check \
53 51 interface_cmp \
54 52 jstyle \
55 53 validate_flg \
56 54 validate_paths \
57 55 wdiff
58 56
59 57 PERLMODULES= \
60 58 onbld_elfmod.pm \
61 59 onbld_elfmod_vertype.pm
62 60
63 61
64 62 PYFILES= \
65 63 cddlchk \
66 64 copyrightchk \
67 65 git-pbchk \
68 66 hdrchk \
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
69 67 mapfilechk \
70 68 validate_pkg \
71 69 wscheck \
72 70 wsdiff
73 71
74 72 SCRIPTLINKS= \
75 73 git-nits
76 74
77 75 MAN1ONBLDFILES= \
78 76 Install.1onbld \
79 - bldenv.1onbld \
80 77 bringovercheck.1onbld \
81 78 cddlchk.1onbld \
82 79 checkpaths.1onbld \
83 80 check_rtime.1onbld \
84 81 cstyle.1onbld \
85 82 find_elf.1onbld \
86 83 flg.flp.1onbld \
87 84 git-pbchk.1onbld \
88 85 hdrchk.1onbld \
89 86 interface_check.1onbld \
90 87 interface_cmp.1onbld \
91 88 jstyle.1onbld \
92 89 mapfilechk.1onbld \
93 - nightly.1onbld \
94 90 onu.1onbld \
95 91 sccscheck.1onbld \
96 92 webrev.1onbld \
97 93 which_scm.1onbld \
98 94 ws.1onbld \
99 95 wsdiff.1onbld \
100 96 xref.1onbld
101 97
102 98 MAN1ONBLDLINKS= \
103 99 git-nits.1onbld
104 100
105 101 MAKEFILES= \
106 102 xref.mk
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
107 103
108 104 ETCFILES= \
109 105 its.conf \
110 106 its.reg
111 107
112 108 EXCEPTFILES= \
113 109 check_rtime \
114 110 interface_check \
115 111 interface_cmp
116 112
117 -CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
113 +CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) onu.sh
118 114
119 115 include ../Makefile.tools
120 116
121 117 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
122 118 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
123 119
124 120 $(ROOTONBLDETCFILES) := FILEMODE= 644
125 121 $(ROOTONBLDEXCEPTFILES) := FILEMODE= 644
126 122 $(ROOTONBLDPERLMODULES) := FILEMODE= 644
127 123 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
128 124 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644
129 125
130 126 .KEEP_STATE:
131 127
132 128 all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
133 129 $(MAN1ONBLDFILES) $(MAKEFILES)
134 130
135 131 onu.sh: onu.sh.in
136 132 $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
137 133
138 134 $(ROOTONBLDBIN)/git-nits:
139 135 $(RM) $(ROOTONBLDBIN)/git-nits
140 136 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
141 137
142 138 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
143 139 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
144 140 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
145 141
146 142 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
147 143 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \
148 144 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
149 145 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
150 146 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
151 147
152 148 clean:
153 149 $(RM) $(CLEANFILES)
154 150
155 -bldenv: bldenv.sh stdenv.sh
156 - $(RM) "$@"
157 - sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
158 - # Check for shell lint and fail if we hit warnings
159 - shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
160 - [[ "$${shlintout}" != "" ]] && \
161 - { print -r -- "$${shlintout}" ; false ; } || true
162 - $(CHMOD) +x "$@"
163 -
164 -bldenv.1onbld: bldenv
165 - $(RM) "$@"
166 - (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
167 - sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
168 - -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \
169 - -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \
170 - -e 's/(1)/(1ONBLD)/' > "$@"
171 -
172 -nightly: nightly.sh stdenv.sh
173 - $(RM) "$@"
174 - sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
175 - $(CHMOD) +x "$@"
176 -
177 151 #
178 152 # Not run by default: bootstrap...
179 153 check:
180 154 $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
181 155
182 156 include ../Makefile.targ
183 157
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX