Print this page
Remove extraneous OmniTI copyright
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/tools/Makefile.python
+++ new/usr/src/tools/Makefile.python
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
|
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 #
23 23 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 -# Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 24 #
26 25
27 26 #
28 27 # This Makefile provides a framework for building the onbld python
29 28 # modules with multiple versions of python.
30 29 #
31 30 # It expects as input:
32 31 #
33 32 # PYSRCS - List of python source files, these are also delivered as
34 33 # build product.
35 34 #
36 35 # PYOBJS - List of compiled python (.pyc) files, with no directory prefix
37 36 #
38 37 # PYTOPDIR - Absolute (including $(ROOT)) path to which files will
39 38 # be installed, up until the version specific component.
40 39 #
41 40 # PYMODDIR - Relative path to which files will be installed, below
42 41 # the version specific component.
43 42 #
44 43 # For example, to install to /opt/onbld/lib/onbld/python*/bar/
45 44 #
46 45 # PYTOPDIR = $(ROOTONBLDLIB)
47 46 # PYMODDIR = bar
48 47 #
49 48 #
50 49 # It provides as output:
51 50 #
52 51 # ROOTPYFILES - The list of $(ROOT)-relative paths to which python
53 52 # source and binary files will be installed. Your
54 53 # Makefile's 'install' target should depend upon
55 54 # this.
56 55 #
57 56 # PYVERSOBJS - The list of paths to compiled python build products,
58 57 # including their subdirectory.
59 58 #
60 59 # pyclobber - A target on which 'clobber' should depend, which
61 60 # removes the per-version python directories and the
62 61 # output within them.
63 62 #
64 63
65 64 PYFILES = $(PYSRCS) $(PYOBJS)
66 65
67 66 ROOTPYDIR_26 = $(PYTOPDIR)/python2.6/$(PYMODDIR)
68 67 ROOTPYFILES_26 = $(PYFILES:%=$(ROOTPYDIR_26)/%)
69 68
70 69 ROOTPYFILES = $(ROOTPYFILES_26)
71 70 $(ROOTPYFILES) := FILEMODE = 0444
72 71
73 72 PYVERSDIRS = python2.6
74 73
75 74 PY26OBJS = $(PYOBJS:%=python2.6/%)
76 75 $(PY26OBJS) := PYTHON = $(PYTHON_26)
77 76
78 77 PYVERSOBJS = $(PY26OBJS)
79 78
80 79 CLOBBERFILES += $(PYVERSOBJS)
81 80 CLOBBERDIRS += $(PYVERSDIRS)
82 81
83 82 .KEEP_STATE:
84 83
85 84 python2.6/%.pyc: %.py
86 85 @[ -d $(@D) ] || mkdir $(@D)
87 86 $(RM) $@
88 87 $(PYTHON) -mpy_compile $<
89 88 $(MV) $(*).pyc $@
90 89
91 90 $(ROOTPYDIR_26)/%.pyc: python2.6/%.pyc
92 91 $(INS.pyfile)
93 92
94 93 $(ROOTPYDIR_26)/%.py: %.py
95 94 $(INS.pyfile)
96 95
97 96 pyclobber:
98 97 $(RM) $(CLOBBERFILES)
99 98 $(RM) -rf $(CLOBBERDIRS)
|
↓ open down ↓ |
65 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX