author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 180 | 1d4f536bdb9d |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# |
|
3 |
# CDDL HEADER START |
|
4 |
# |
|
5 |
# The contents of this file are subject to the terms of the |
|
6 |
# Common Development and Distribution License (the "License"). |
|
7 |
# You may not use this file except in compliance with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
# |
|
20 |
# CDDL HEADER END |
|
21 |
# |
|
6 | 22 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
0 | 23 |
# Use is subject to license terms. |
24 |
# |
|
6 | 25 |
# ident "@(#)Makefile.sfw 1.12 10/01/08 SMI" |
0 | 26 |
|
27 |
PROG = hg |
|
28 |
||
29 |
EXDEMOFILES = convert-repo dumprevlog hg-relink hg-ssh hgdiff hgk rewrite-log \ |
|
30 |
simplemerge undumprevlog |
|
31 |
||
32 |
DEMOFILES = $(EXDEMOFILES) \ |
|
33 |
bash_completion \ |
|
34 |
git-viz/git-cat-file \ |
|
35 |
git-viz/git-diff-tree \ |
|
36 |
git-viz/git-rev-list \ |
|
37 |
git-viz/git-rev-tree \ |
|
38 |
git-viz/hg-viz \ |
|
39 |
hgsh/Makefile \ |
|
40 |
hgsh/hgsh.c \ |
|
41 |
hgwebdir.fcgi \ |
|
42 |
hgwebdir.wsgi \ |
|
43 |
logo-droplets.svg \ |
|
44 |
mercurial.el \ |
|
45 |
mergetools.hgrc \ |
|
46 |
mq.el \ |
|
47 |
perf.py \ |
|
48 |
python-hook-examples.py \ |
|
49 |
sample.hgrc \ |
|
50 |
tcsh_completion \ |
|
51 |
tcsh_completion_build.sh \ |
|
52 |
tmplrewrite.py \ |
|
53 |
vim/HGAnnotate.vim \ |
|
54 |
vim/hg-menu.vim \ |
|
55 |
vim/hgcommand.vim \ |
|
56 |
vim/patchreview.txt \ |
|
57 |
vim/patchreview.vim \ |
|
58 |
zsh_completion |
|
59 |
||
60 |
MAN1FILES = hg.1 |
|
61 |
MAN5FILES = hgignore.5 hgrc.5 |
|
62 |
||
63 |
HGEXTPYFILES = \ |
|
64 |
__init__.py \ |
|
65 |
acl.py \ |
|
66 |
bookmarks.py \ |
|
67 |
bugzilla.py \ |
|
68 |
children.py \ |
|
69 |
churn.py \ |
|
70 |
color.py \ |
|
71 |
convert/__init__.py \ |
|
72 |
convert/bzr.py \ |
|
73 |
convert/common.py \ |
|
74 |
convert/convcmd.py \ |
|
75 |
convert/cvs.py \ |
|
76 |
convert/cvsps.py \ |
|
77 |
convert/darcs.py \ |
|
78 |
convert/filemap.py \ |
|
79 |
convert/git.py \ |
|
80 |
convert/gnuarch.py \ |
|
81 |
convert/hg.py \ |
|
82 |
convert/monotone.py \ |
|
83 |
convert/p4.py \ |
|
84 |
convert/subversion.py \ |
|
85 |
convert/transport.py \ |
|
86 |
extdiff.py \ |
|
87 |
fetch.py \ |
|
88 |
gpg.py \ |
|
89 |
graphlog.py \ |
|
90 |
hgcia.py \ |
|
91 |
hgk.py \ |
|
92 |
highlight/__init__.py \ |
|
93 |
highlight/highlight.py \ |
|
94 |
interhg.py \ |
|
95 |
keyword.py \ |
|
96 |
mq.py \ |
|
97 |
notify.py \ |
|
98 |
pager.py \ |
|
99 |
parentrevspec.py \ |
|
100 |
patchbomb.py \ |
|
101 |
purge.py \ |
|
102 |
rebase.py \ |
|
103 |
record.py \ |
|
104 |
share.py \ |
|
105 |
transplant.py \ |
|
106 |
win32mbcs.py \ |
|
107 |
win32text.py \ |
|
108 |
zeroconf/Zeroconf.py \ |
|
109 |
zeroconf/__init__.py |
|
110 |
||
111 |
MERCPYFILES = \ |
|
112 |
__init__.py \ |
|
113 |
__version__.py \ |
|
114 |
ancestor.py \ |
|
115 |
archival.py \ |
|
116 |
bundlerepo.py \ |
|
117 |
byterange.py \ |
|
118 |
changegroup.py \ |
|
119 |
changelog.py \ |
|
120 |
cmdutil.py \ |
|
121 |
commands.py \ |
|
122 |
config.py \ |
|
123 |
context.py \ |
|
124 |
copies.py \ |
|
125 |
demandimport.py \ |
|
126 |
dirstate.py \ |
|
127 |
dispatch.py \ |
|
128 |
encoding.py \ |
|
129 |
error.py \ |
|
130 |
extensions.py \ |
|
131 |
fancyopts.py \ |
|
132 |
filelog.py \ |
|
133 |
filemerge.py \ |
|
134 |
graphmod.py \ |
|
135 |
hbisect.py \ |
|
136 |
help.py \ |
|
137 |
hg.py \ |
|
138 |
hgweb/__init__.py \ |
|
139 |
hgweb/common.py \ |
|
140 |
hgweb/hgweb_mod.py \ |
|
141 |
hgweb/hgwebdir_mod.py \ |
|
142 |
hgweb/protocol.py \ |
|
143 |
hgweb/request.py \ |
|
144 |
hgweb/server.py \ |
|
145 |
hgweb/webcommands.py \ |
|
146 |
hgweb/webutil.py \ |
|
147 |
hgweb/wsgicgi.py \ |
|
148 |
hook.py \ |
|
149 |
httprepo.py \ |
|
150 |
i18n.py \ |
|
151 |
ignore.py \ |
|
152 |
keepalive.py \ |
|
153 |
localrepo.py \ |
|
154 |
lock.py \ |
|
155 |
lsprof.py \ |
|
156 |
lsprofcalltree.py \ |
|
157 |
mail.py \ |
|
158 |
manifest.py \ |
|
159 |
match.py \ |
|
160 |
mdiff.py \ |
|
161 |
merge.py \ |
|
162 |
node.py \ |
|
163 |
patch.py \ |
|
164 |
posix.py \ |
|
165 |
repair.py \ |
|
166 |
repo.py \ |
|
167 |
revlog.py \ |
|
168 |
simplemerge.py \ |
|
169 |
sshrepo.py \ |
|
170 |
sshserver.py \ |
|
171 |
statichttprepo.py \ |
|
172 |
store.py \ |
|
173 |
streamclone.py \ |
|
174 |
strutil.py \ |
|
175 |
subrepo.py \ |
|
176 |
templatefilters.py \ |
|
177 |
templater.py \ |
|
178 |
transaction.py \ |
|
179 |
ui.py \ |
|
180 |
url.py \ |
|
181 |
util.py \ |
|
182 |
verify.py \ |
|
183 |
win32.py \ |
|
184 |
windows.py |
|
185 |
||
186 |
PYFILES = $(HGEXTPYFILES:%=hgext/%) $(MERCPYFILES:%=mercurial/%) |
|
187 |
||
188 |
PYCFILES = $(PYFILES:%.py=%.pyc) |
|
189 |
||
190 |
PYSOFILES = mercurial/base85.so mercurial/bdiff.so mercurial/diffhelpers.so \ |
|
191 |
mercurial/mpatch.so mercurial/osutil.so mercurial/parsers.so |
|
192 |
||
193 |
TEMPLATEFILES = \ |
|
194 |
atom/changelog.tmpl \ |
|
195 |
atom/changelogentry.tmpl \ |
|
196 |
atom/error.tmpl \ |
|
197 |
atom/filelog.tmpl \ |
|
198 |
atom/header.tmpl \ |
|
199 |
atom/map \ |
|
200 |
atom/tagentry.tmpl \ |
|
201 |
atom/tags.tmpl \ |
|
202 |
coal/header.tmpl \ |
|
203 |
coal/map \ |
|
204 |
gitweb/branches.tmpl \ |
|
205 |
gitweb/changelog.tmpl \ |
|
206 |
gitweb/changelogentry.tmpl \ |
|
207 |
gitweb/changeset.tmpl \ |
|
208 |
gitweb/error.tmpl \ |
|
209 |
gitweb/fileannotate.tmpl \ |
|
210 |
gitweb/filediff.tmpl \ |
|
211 |
gitweb/filelog.tmpl \ |
|
212 |
gitweb/filerevision.tmpl \ |
|
213 |
gitweb/footer.tmpl \ |
|
214 |
gitweb/graph.tmpl \ |
|
215 |
gitweb/header.tmpl \ |
|
216 |
gitweb/index.tmpl \ |
|
217 |
gitweb/manifest.tmpl \ |
|
218 |
gitweb/map \ |
|
219 |
gitweb/notfound.tmpl \ |
|
220 |
gitweb/search.tmpl \ |
|
221 |
gitweb/shortlog.tmpl \ |
|
222 |
gitweb/summary.tmpl \ |
|
223 |
gitweb/tags.tmpl \ |
|
224 |
map-cmdline.changelog \ |
|
225 |
map-cmdline.compact \ |
|
226 |
map-cmdline.default \ |
|
227 |
monoblue/branches.tmpl \ |
|
228 |
monoblue/changelog.tmpl \ |
|
229 |
monoblue/changelogentry.tmpl \ |
|
230 |
monoblue/changeset.tmpl \ |
|
231 |
monoblue/error.tmpl \ |
|
232 |
monoblue/fileannotate.tmpl \ |
|
233 |
monoblue/filediff.tmpl \ |
|
234 |
monoblue/filelog.tmpl \ |
|
235 |
monoblue/filerevision.tmpl \ |
|
236 |
monoblue/footer.tmpl \ |
|
237 |
monoblue/graph.tmpl \ |
|
238 |
monoblue/header.tmpl \ |
|
239 |
monoblue/index.tmpl \ |
|
240 |
monoblue/manifest.tmpl \ |
|
241 |
monoblue/map \ |
|
242 |
monoblue/notfound.tmpl \ |
|
243 |
monoblue/search.tmpl \ |
|
244 |
monoblue/shortlog.tmpl \ |
|
245 |
monoblue/summary.tmpl \ |
|
246 |
monoblue/tags.tmpl \ |
|
247 |
paper/branches.tmpl \ |
|
248 |
paper/changeset.tmpl \ |
|
249 |
paper/error.tmpl \ |
|
250 |
paper/fileannotate.tmpl \ |
|
251 |
paper/filediff.tmpl \ |
|
252 |
paper/filelog.tmpl \ |
|
253 |
paper/filelogentry.tmpl \ |
|
254 |
paper/filerevision.tmpl \ |
|
255 |
paper/footer.tmpl \ |
|
256 |
paper/graph.tmpl \ |
|
257 |
paper/header.tmpl \ |
|
258 |
paper/index.tmpl \ |
|
259 |
paper/manifest.tmpl \ |
|
260 |
paper/map \ |
|
261 |
paper/notfound.tmpl \ |
|
262 |
paper/search.tmpl \ |
|
263 |
paper/shortlog.tmpl \ |
|
264 |
paper/shortlogentry.tmpl \ |
|
265 |
paper/tags.tmpl \ |
|
266 |
raw/changeset.tmpl \ |
|
267 |
raw/error.tmpl \ |
|
268 |
raw/fileannotate.tmpl \ |
|
269 |
raw/filediff.tmpl \ |
|
270 |
raw/index.tmpl \ |
|
271 |
raw/manifest.tmpl \ |
|
272 |
raw/map \ |
|
273 |
raw/notfound.tmpl \ |
|
274 |
rss/changelog.tmpl \ |
|
275 |
rss/changelogentry.tmpl \ |
|
276 |
rss/error.tmpl \ |
|
277 |
rss/filelog.tmpl \ |
|
278 |
rss/filelogentry.tmpl \ |
|
279 |
rss/header.tmpl \ |
|
280 |
rss/map \ |
|
281 |
rss/tagentry.tmpl \ |
|
282 |
rss/tags.tmpl \ |
|
283 |
spartan/branches.tmpl \ |
|
284 |
spartan/changelog.tmpl \ |
|
285 |
spartan/changelogentry.tmpl \ |
|
286 |
spartan/changeset.tmpl \ |
|
287 |
spartan/error.tmpl \ |
|
288 |
spartan/fileannotate.tmpl \ |
|
289 |
spartan/filediff.tmpl \ |
|
290 |
spartan/filelog.tmpl \ |
|
291 |
spartan/filelogentry.tmpl \ |
|
292 |
spartan/filerevision.tmpl \ |
|
293 |
spartan/footer.tmpl \ |
|
294 |
spartan/graph.tmpl \ |
|
295 |
spartan/header.tmpl \ |
|
296 |
spartan/index.tmpl \ |
|
297 |
spartan/manifest.tmpl \ |
|
298 |
spartan/map \ |
|
299 |
spartan/notfound.tmpl \ |
|
300 |
spartan/search.tmpl \ |
|
301 |
spartan/shortlog.tmpl \ |
|
302 |
spartan/shortlogentry.tmpl \ |
|
303 |
spartan/tags.tmpl \ |
|
304 |
static/background.png \ |
|
305 |
static/coal-file.png \ |
|
306 |
static/coal-folder.png \ |
|
307 |
static/excanvas.js \ |
|
308 |
static/graph.js \ |
|
309 |
static/hgicon.png \ |
|
310 |
static/hglogo.png \ |
|
311 |
static/style-coal.css \ |
|
312 |
static/style-gitweb.css \ |
|
313 |
static/style-monoblue.css \ |
|
314 |
static/style-paper.css \ |
|
315 |
static/style.css \ |
|
316 |
template-vars.txt |
|
317 |
||
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
318 |
PYTHON26LIB= /usr/lib/python2.6/vendor-packages |
0 | 319 |
|
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
320 |
ROOTPYTHON26LIB= $(ROOT)$(PYTHON26LIB) |
0 | 321 |
|
322 |
ROOTDEMOFILES = $(DEMOFILES:%=$(ROOTUSRDEMO)/mercurial/%) |
|
323 |
ROOTEXDEMOFILES = $(EXDEMOFILES:%=$(ROOTUSRDEMO)/mercurial/%) |
|
324 |
||
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
325 |
ROOTPY26FILES = $(PYFILES:%=$(ROOTPYTHON26LIB)/%) |
180
1d4f536bdb9d
Remove Mercurial python-24 dependency
Jon Tibble <meths@btinternet.com>
parents:
172
diff
changeset
|
326 |
ROOTPYFILES = $(ROOTPY26FILES) |
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
327 |
ROOTPYC26FILES = $(PYCFILES:%=$(ROOTPYTHON26LIB)/%) |
180
1d4f536bdb9d
Remove Mercurial python-24 dependency
Jon Tibble <meths@btinternet.com>
parents:
172
diff
changeset
|
328 |
ROOTPYCFILES = $(ROOTPYC26FILES) |
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
329 |
ROOTPYSO26FILES = $(PYSOFILES:%=$(ROOTPYTHON26LIB)/%) |
180
1d4f536bdb9d
Remove Mercurial python-24 dependency
Jon Tibble <meths@btinternet.com>
parents:
172
diff
changeset
|
330 |
ROOTPYSOFILES = $(ROOTPYSO26FILES) |
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
331 |
ROOTTEMPLATE26FILES = $(TEMPLATEFILES:%=$(ROOTPYTHON26LIB)/mercurial/templates/%) |
180
1d4f536bdb9d
Remove Mercurial python-24 dependency
Jon Tibble <meths@btinternet.com>
parents:
172
diff
changeset
|
332 |
ROOTTEMPLATEFILES = $(ROOTTEMPLATE26FILES) |
0 | 333 |
|
334 |
include ../Makefile.cmd |
|
335 |
||
336 |
$(ROOTDEMOFILES) := FILEMODE= 0444 |
|
337 |
$(ROOTEXDEMOFILES) := FILEMODE= 0555 |
|
338 |
$(ROOTPYFILES) := FILEMODE= 0444 |
|
339 |
$(ROOTPYCFILES) := FILEMODE= 0444 |
|
340 |
$(ROOTPYSOFILES) := FILEMODE= 0555 |
|
341 |
$(ROOTTEMPLATEFILES) := FILEMODE= 0444 |
|
342 |
||
343 |
VER=mercurial-$(COMPONENT_VERSION:sh) |
|
344 |
TARBALL=$(VER).tar.gz |
|
345 |
||
346 |
all: $(VER)/build/proto |
|
347 |
||
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
348 |
$(VER)/build/scripts-2.6/hg: $(VER)/setup.py |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
349 |
cd $(VER); env CC=$(CC) $(PYTHON26) setup.py build \ |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
350 |
--executable=$(PYTHON26) |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
351 |
|
180
1d4f536bdb9d
Remove Mercurial python-24 dependency
Jon Tibble <meths@btinternet.com>
parents:
172
diff
changeset
|
352 |
$(VER)/build/proto: $(VER)/build/scripts-2.6/hg |
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
353 |
cd $(VER); env CC=$(CC) $(PYTHON26) setup.py install --root=build/proto \ |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
354 |
--install-lib=$(PYTHON26LIB) |
0 | 355 |
|
356 |
$(VER)/setup.py: $(VER)/.patched |
|
357 |
||
358 |
test: install |
|
359 |
cd $(VER)/tests; \ |
|
360 |
env PYTHONPATH=$(VER)/build/proto \ |
|
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
361 |
$(PYTHON26) run-tests.py |
0 | 362 |
|
363 |
install: all .WAIT $(ROOTPROG) \ |
|
364 |
$(ROOTMAN1FILES) $(ROOTMAN5FILES) $(ROOTDEMOFILES) \ |
|
365 |
$(ROOTPYFILES) $(ROOTPYCFILES) $(ROOTTEMPLATEFILES) $(ROOTPYSOFILES) |
|
366 |
||
367 |
clean: |
|
368 |
-rm -rf $(VER) sunman |
|
369 |
||
370 |
include ../Makefile.targ |
|
371 |
||
372 |
# We touch the source file to zero out the low bits of the timestamp so future |
|
373 |
# install runs don't re-install into the proto area. |
|
6 | 374 |
INS.pyfile = $(INSTALL) -m $(FILEMODE) $< $@ |
0 | 375 |
|
376 |
$(ROOTBIN)/%: $(VER)/build/proto/usr/bin/% |
|
129 | 377 |
env PYTHON=$(PYTHON26) $(INS.pyfile) |
0 | 378 |
|
379 |
$(ROOTUSRDEMO)/mercurial/%: $(VER)/contrib/% |
|
380 |
$(INS.pyfile) |
|
381 |
||
382 |
$(ROOTUSRDEMO)/mercurial/%: $(VER)/% |
|
383 |
$(INS.pyfile) |
|
384 |
||
106
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
385 |
$(ROOTPYTHON26LIB)/%.so: $(VER)/build/proto/$(PYTHON26LIB)/%.so |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
386 |
$(SRC)/tools/post_process_so $< |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
387 |
$(INS.pyfile) |
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
388 |
|
d5bfd42e929e
1619 Mercurial needs to transition to python2.6
Bayard Bell <buffer.g.overflow@gmail.com>
parents:
6
diff
changeset
|
389 |
$(ROOTPYTHON26LIB)/%: $(VER)/build/proto/$(PYTHON26LIB)/% |
0 | 390 |
$(INS.pyfile) |
391 |
||
392 |
$(ROOTMAN1)/% $(ROOTMAN5)/%: sunman/% |
|
393 |
$(INS.pyfile) |
|
394 |
||
395 |
sunman: |
|
396 |
mkdir -p sunman |
|
397 |
||
398 |
SEDSCRIPTS = sunman.sed |
|
399 |
||
400 |
sunman/hg.1 sunman/hgrc.5 := SEDSCRIPTS += $(@F).sed |
|
401 |
||
402 |
sunman/%: sunman.sed sunman $(VER)/doc/% |
|
403 |
$(SED) $(SEDSCRIPTS:%=-f %) $< > $@ |