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