annotate Makefile.in @ 4566:6403c94de50d legacy-trunk

Added safeguard against failure in __del__.
author Guido van Rossum <guido@python.org>
date Wed, 27 Nov 1996 19:39:58 +0000
parents 65d2d8e67da3
children 43ab0fefe4a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
1 ########################################################################
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
2 # Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3 # The Netherlands.
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
4 #
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
5 # All Rights Reserved
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
6 #
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
7 # Permission to use, copy, modify, and distribute this software and its
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
8 # documentation for any purpose and without fee is hereby granted,
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
9 # provided that the above copyright notice appear in all copies and that
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
10 # both that copyright notice and this permission notice appear in
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
11 # supporting documentation, and that the names of Stichting Mathematisch
4503
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
12 # Centrum or CWI or Corporation for National Research Initiatives or
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
13 # CNRI not be used in advertising or publicity pertaining to
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
14 # distribution of the software without specific, written prior
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
15 # permission.
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
16 #
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
17 # While CWI is the initial source for this software, a modified version
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
18 # is made available by the Corporation for National Research Initiatives
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
19 # (CNRI) at the Internet address ftp://ftp.python.org.
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
20 #
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
21 # STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
22 # REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
23 # MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
24 # CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
25 # DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
26 # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
27 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 4270
diff changeset
28 # PERFORMANCE OF THIS SOFTWARE.
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
29 ########################################################################
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
30
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
31 # Top-level Makefile for Python
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
32 #
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
33 # As distributed, this file is called Makefile.in; it is processed
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
34 # into the real Makefile by running the script ./configure, which
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
35 # replaces things like @spam@ with values appropriate for your system.
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
36 # This means that if you edit Makefile, your changes get lost the next
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
37 # time you run the configure script. Ideally, you can do:
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
38 #
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
39 # ./configure
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
40 # make
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
41 # make test
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
42 # make install
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
43 #
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
44 # The top-level Makefile invokes make recursively in a number of
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
45 # subdirectories (see the SUBDIRS variable below). If you want to,
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
46 # you can invoke make in individual subdirectories. However, the
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
47 # sub-Makefiles are also generated by configure, and the quickest way
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
48 # to make sure they are up to date is by running make (or "make
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
49 # Makefiles") at the top level. This is particularly important for
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
50 # Modules/Makefile, which has to be regenerated every time you edit
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
51 # Modules/Setup. The python executable is built in the Modules
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
52 # directory and then moved to the top-level directory. The recursive
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
53 # makes pass three options to subordinate makes: OPT (a quick way to
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
54 # change some compiler options; it usually defaults to -O), prefix and
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
55 # exec_prefix (the installation paths).
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
56 #
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
57 # If you have a previous version of Python installed that you don't
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
58 # want to overwrite, you can use "make altinstall" instead of "make
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
59 # install". This changes the install procedure so it installs the
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
60 # Python binary as "python<version>". The libraries and include files
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
61 # are always installed in a subdirectory called "python<version>".
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
62 # "make altinstall" does not install the manual page. If you want to
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
63 # make this installation the "official" installation but want to keep
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
64 # the old binary around "just in case", rename the installed python
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
65 # binary to "python<oldversion>" before running "make install".
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
66 # (This only works between different versions, e.g. 1.3 and 1.4 --
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
67 # different betas of the same version will overwrite each other in
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
68 # installation unless you override the VERSION Make variable.)
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
69 #
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
70 # In fact, "make install" or "make bininstall" installs the binary
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
71 # as python<version> and makes a hard link to python, so when
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
72 # installing a new version in the future, nothing of the current
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
73 # version will be lost (except for the man page).
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
74 #
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
75 # If recursive makes fail, try invoking make as "make MAKE=make".
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
76 #
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
77 # See also the section "Build instructions" in the README file.
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
78
3808
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
79 # Interpreter version number, for library destination pathnames
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
80 VERSION= 1.4
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
81
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
82 # Substitutions by configure
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
83 srcdir= @srcdir@
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
84 VPATH= @srcdir@
1969
3de5a75494df apply ranoib to installed libraries
Guido van Rossum <guido@python.org>
parents: 1881
diff changeset
85 RANLIB= @RANLIB@
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
86
1881
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
87 # Machine-dependent subdirectories
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
88 MACHDEP= @MACHDEP@
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
89
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
90 # Install prefix for architecture-independent files
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1992
diff changeset
91 prefix= @prefix@
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
92
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
93 # Install prefix for architecture-dependent files
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1992
diff changeset
94 exec_prefix= @exec_prefix@
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
95
1992
f49527ecdb3a run sharedinstall; add BINDIR macros etc
Guido van Rossum <guido@python.org>
parents: 1969
diff changeset
96 # Expanded directories
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
97 BINDIR= $(exec_prefix)/bin
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
98 LIBDIR= $(exec_prefix)/lib
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
99 MANDIR= $(prefix)/man
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
100 INCLUDEDIR= $(prefix)/include
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
101 SCRIPTDIR= $(prefix)/lib
1992
f49527ecdb3a run sharedinstall; add BINDIR macros etc
Guido van Rossum <guido@python.org>
parents: 1969
diff changeset
102
3890
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
103 # Detailed destination directories
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
104 BINLIBDEST= $(LIBDIR)/python$(VERSION)
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
105 LIBDEST= $(SCRIPTDIR)/python$(VERSION)
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
106 INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
107 LIBP= $(LIBDIR)/python$(VERSION)
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
108
1881
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
109 # Symbols used for using shared libraries
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
110 SO= @SO@
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
111 LDSHARED= @LDSHARED@
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
112 CCSHARED= @CCSHARED@
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
113 LINKFORSHARED= @LINKFORSHARED@
3890
f90301544fa9 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3889
diff changeset
114 DESTSHARED= $(BINLIBDEST)/sharedmodules
1881
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
115
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
116 # Shell used by make (some versions default to the login shell, which is bad)
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
117 SHELL= /bin/sh
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
118
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
119 # Portable install script (configure doesn't always guess right)
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
120 INSTALL= @srcdir@/install-sh -c
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
121 INSTALL_PROGRAM=${INSTALL} -m 755
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
122 INSTALL_DATA= ${INSTALL} -m 644
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
123
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
124 # --with-PACKAGE options for configure script
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
125 # e.g. --with-readline --with-svr5 --with-solaris --with-thread
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
126 # (see README for an explanation)
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
127 WITH=
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
128
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
129 # Compiler options passed to subordinate makes
1803
fafa5dc8100f Simplify value of INSTALL (always 'cp').
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
130 OPT= @OPT@
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
131
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
132 # Subdirectories where to run make recursively
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
133 SUBDIRS= Parser Objects Python Modules
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
134
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
135 # Other subdirectories
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
136 SUBDIRSTOO= Include Lib Doc Misc Demo Grammar
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
137
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
138 # Files and directories to be distributed
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
139 CONFIGFILES= configure configure.in acconfig.h config.h.in Makefile.in
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
140 DISTFILES= README ChangeLog $(CONFIGFILES)
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
141 DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
142 DIST= $(DISTFILES) $(DISTDIRS)
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
143
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
144 # Default target
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
145 all: python
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
146
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
147 # Build the interpreter
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
148 python: Makefiles
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
149 @for i in $(SUBDIRS); do \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
150 (echo Making in subdirectory $$i; cd $$i; \
2927
0ad9d123ff55 pass prefix etc. on when making sharedinstall; install getpath.c
Guido van Rossum <guido@python.org>
parents: 2594
diff changeset
151 $(MAKE) OPT="$(OPT)" \
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
152 VERSION="$(VERSION)" \
2927
0ad9d123ff55 pass prefix etc. on when making sharedinstall; install getpath.c
Guido van Rossum <guido@python.org>
parents: 2594
diff changeset
153 prefix="$(prefix)" \
0ad9d123ff55 pass prefix etc. on when making sharedinstall; install getpath.c
Guido van Rossum <guido@python.org>
parents: 2594
diff changeset
154 exec_prefix="$(exec_prefix)" \
0ad9d123ff55 pass prefix etc. on when making sharedinstall; install getpath.c
Guido van Rossum <guido@python.org>
parents: 2594
diff changeset
155 all); \
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
156 done
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
157
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
158 # Test the interpreter (twice, once without .pyc files, once with)
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1992
diff changeset
159 TESTPATH= $(srcdir)/Lib:$(srcdir)/Lib/test:./Modules
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
160 test: python
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
161 -rm -f $(srcdir)/Lib/test/*.pyc
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
162 PYTHONPATH=$(TESTPATH) ./python -c 'import autotest'
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
163 PYTHONPATH=$(TESTPATH) ./python -c 'import autotest'
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
164
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
165 # Install everything
3888
3c75306a65ce Correct typo (intall -> install)
Guido van Rossum <guido@python.org>
parents: 3880
diff changeset
166 install: altinstall bininstall maninstall
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
167
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
168 # Install almost everything without disturbing previous versions
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
169 altinstall: altbininstall libinstall inclinstall libainstall sharedinstall
3808
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
170
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
171 # Install the interpreter (by creating a hard link to python$(VERSION))
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
172 bininstall: altbininstall
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
173 -if test -f $(BINDIR)/python; \
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
174 then rm -f $(BINDIR)/python; \
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
175 else true; \
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
176 fi
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
177 (cd $(BINDIR); ln python$(VERSION) python)
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
178
3808
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
179 # Install the interpreter with $(VERSION) affixed
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
180 # This goes into $(exec_prefix)
3808
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
181 altbininstall: python
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
182 @for i in $(BINDIR); \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
183 do \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
184 if test ! -d $$i; then \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
185 echo "Creating directory $$i"; \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
186 mkdir $$i; \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
187 chmod 755 $$i; \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
188 else true; \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
189 fi; \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
190 done
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
191 $(INSTALL_PROGRAM) python $(BINDIR)/python$(VERSION)
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
192
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
193 # Install the manual page
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
194 maninstall:
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
195 @for i in $(MANDIR) $(MANDIR)/man1; \
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
196 do \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
197 if test ! -d $$i; then \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
198 echo "Creating directory $$i"; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
199 mkdir $$i; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
200 chmod 755 $$i; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
201 else true; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
202 fi; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
203 done
2196
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
204 $(INSTALL_DATA) $(srcdir)/Misc/python.man \
1992
f49527ecdb3a run sharedinstall; add BINDIR macros etc
Guido van Rossum <guido@python.org>
parents: 1969
diff changeset
205 $(MANDIR)/man1/python.1
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
206
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
207 # Install the library
3889
5716825f6e9b Add a variable so you can easily install more than one machdep directory.
Guido van Rossum <guido@python.org>
parents: 3888
diff changeset
208 MACHDEPS= $(MACHDEP)
5716825f6e9b Add a variable so you can easily install more than one machdep directory.
Guido van Rossum <guido@python.org>
parents: 3888
diff changeset
209 LIBSUBDIRS= stdwin tkinter test $(MACHDEPS)
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
210 libinstall: python $(srcdir)/Lib/$(MACHDEP)
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
211 @for i in $(SCRIPTDIR) $(LIBDEST); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
212 do \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
213 if test ! -d $$i; then \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
214 echo "Creating directory $$i"; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
215 mkdir $$i; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
216 chmod 755 $$i; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
217 else true; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
218 fi; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
219 done
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
220 @for d in $(LIBSUBDIRS); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
221 do \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
222 a=$(srcdir)/Lib/$$d; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
223 if test ! -d $$a; then continue; else true; fi; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
224 b=$(LIBDEST)/$$d; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
225 if test ! -d $$b; then \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
226 echo "Creating directory $$b"; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
227 mkdir $$b; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
228 chmod 755 $$b; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
229 else true; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
230 fi; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
231 done
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
232 @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
233 do \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
234 if test -x $$i; then \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
235 $(INSTALL_PROGRAM) $$i $(LIBDEST); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
236 echo $(INSTALL_PROGRAM) $$i $(LIBDEST); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
237 else \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
238 $(INSTALL_DATA) $$i $(LIBDEST); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
239 echo $(INSTALL_DATA) $$i $(LIBDEST); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
240 fi; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
241 done
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
242 @for d in $(LIBSUBDIRS); \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
243 do \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
244 a=$(srcdir)/Lib/$$d; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
245 if test ! -d $$a; then continue; else true; fi; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
246 b=$(LIBDEST)/$$d; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
247 for i in $$a/*; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
248 do \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
249 case $$i in \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
250 *CVS) ;; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
251 *.pyc) ;; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
252 *~) ;; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
253 *) \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
254 if test -x $$i; then \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
255 echo $(INSTALL_PROGRAM) $$i $$b; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
256 $(INSTALL_PROGRAM) $$i $$b; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
257 else \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
258 echo $(INSTALL_DATA) $$i $$b; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
259 $(INSTALL_DATA) $$i $$b; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
260 fi;; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
261 esac; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
262 done; \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
263 done
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
264 PYTHONPATH=$(LIBDEST) \
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
265 ./python $(LIBDEST)/compileall.py $(LIBDEST)
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
266
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
267 # Create the MACHDEP source directory, if one wasn't distributed..
4097
e538638edc71 Remove dependency of $(srcdir)/Lib/$(MACHDEP) on python, since it would
Guido van Rossum <guido@python.org>
parents: 4027
diff changeset
268 $(srcdir)/Lib/$(MACHDEP):
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
269 mkdir $(srcdir)/Lib/$(MACHDEP)
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
270 cp $(srcdir)/Lib/generic/regen $(srcdir)/Lib/$(MACHDEP)/regen
4270
ef51e4a2e799 Use 574PATH, not $(PATH) -- it's a shell variable
Guido van Rossum <guido@python.org>
parents: 4172
diff changeset
271 export PATH; PATH="`pwd`:$$PATH"; \
4172
88997802fb9b Fix $PATH and add $PYTHONPATH used to run regen.
Guido van Rossum <guido@python.org>
parents: 4097
diff changeset
272 export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
4027
2cdb8f5ac365 MACHDEP and regen problem is now taken care of
Guido van Rossum <guido@python.org>
parents: 3890
diff changeset
273 cd $(srcdir)/Lib/$(MACHDEP); ./regen
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
274
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
275 # Install the include files
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
276 inclinstall:
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
277 @for i in $(INCLUDEDIR) $(INCLUDEPY); \
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
278 do \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
279 if test ! -d $$i; then \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
280 echo "Creating directory $$i"; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
281 mkdir $$i; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
282 chmod 755 $$i; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
283 else true; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
284 fi; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
285 done
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
286 @for i in $(srcdir)/Include/*.h; \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
287 do \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
288 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
289 $(INSTALL_DATA) $$i $(INCLUDEPY); \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
290 done
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
291
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
292 # Install the lib*.a files and miscellaneous stuff needed by extensions
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
293 # This goes into $(exec_prefix)
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
294 LIBPL= $(LIBP)/config
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
295 libainstall: all
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
296 @for i in $(LIBDIR) $(LIBP) $(LIBPL); \
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
297 do \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
298 if test ! -d $$i; then \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
299 echo "Creating directory $$i"; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
300 mkdir $$i; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
301 chmod 755 $$i; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
302 else true; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
303 fi; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
304 done
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
305 @for i in $(SUBDIRS); do \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
306 echo Installing in subdirectory $$i; \
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
307 $(INSTALL_DATA) $$i/lib$$i.a $(LIBPL)/lib$$i.a; \
1969
3de5a75494df apply ranoib to installed libraries
Guido van Rossum <guido@python.org>
parents: 1881
diff changeset
308 $(RANLIB) $(LIBPL)/lib$$i.a; \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
309 done
2196
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
310 $(INSTALL_DATA) Modules/config.c $(LIBPL)/config.c
2927
0ad9d123ff55 pass prefix etc. on when making sharedinstall; install getpath.c
Guido van Rossum <guido@python.org>
parents: 2594
diff changeset
311 $(INSTALL_DATA) $(srcdir)/Modules/getpath.c $(LIBPL)/getpath.c
2196
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
312 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(LIBPL)/config.c.in
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
313 $(INSTALL_DATA) Modules/Makefile $(LIBPL)/Makefile
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
314 $(INSTALL_DATA) Modules/Setup $(LIBPL)/Setup
3777
f35dde7f4143 Use INSTALL_PROGRAM for makesetup
Guido van Rossum <guido@python.org>
parents: 3739
diff changeset
315 $(INSTALL_PROGRAM) $(srcdir)/Modules/makesetup $(LIBPL)/makesetup
2196
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
316 $(INSTALL_DATA) config.h $(LIBPL)/config.h
5e568bacfbe9 define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents: 2163
diff changeset
317 $(INSTALL_DATA) $(srcdir)/Python/frozenmain.c $(LIBPL)/frozenmain.c
2937
1d8626bc99c7 Fixed creation of extended python.
Sjoerd Mullender <sjoerd@acm.org>
parents: 2927
diff changeset
318 $(INSTALL_DATA) Modules/main.o $(LIBPL)/main.o
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
319
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
320 # Install the dynamically loadable modules
3880
d0b4566e2107 Some more install changes:
Guido van Rossum <guido@python.org>
parents: 3849
diff changeset
321 # This goes into $(exec_prefix)
1881
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
322 sharedinstall:
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
323 cd Modules; $(MAKE) \
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
324 OPT="$(OPT)" \
3849
69dcc02e3135 More changes to install targets.
Guido van Rossum <guido@python.org>
parents: 3808
diff changeset
325 VERSION="$(VERSION)" \
1881
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
326 SO="$(SO)" \
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
327 LDSHARED="$(LDSHARED)" \
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
328 CCSHARED="$(CCSHARED)" \
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
329 LINKFORSHARED="$(LINKFORSHARED)" \
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
330 DESTSHARED="$(DESTSHARED)" \
3808
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
331 prefix="$(prefix)" \
17a2891e627f Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents: 3777
diff changeset
332 exec_prefix="$(exec_prefix)" \
1881
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
333 sharedinstall
3a70e9c0d9f5 Shared library support
Guido van Rossum <guido@python.org>
parents: 1857
diff changeset
334
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
335 # Build the sub-Makefiles
2163
ee0b3cb37af8 be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents: 2133
diff changeset
336 Makefiles: config.status Modules/Makefile.pre
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
337 (cd Modules; $(MAKE) -f Makefile.pre Makefile)
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
338 @for i in . $(SUBDIRS); do \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
339 (echo making Makefile in subdirectory $$i; cd $$i; \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
340 $(MAKE) Makefile); \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
341 done
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
342
2163
ee0b3cb37af8 be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents: 2133
diff changeset
343 # Build the intermediate Makefile in Modules
ee0b3cb37af8 be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents: 2133
diff changeset
344 Modules/Makefile.pre: config.status
ee0b3cb37af8 be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents: 2133
diff changeset
345 $(SHELL) config.status
ee0b3cb37af8 be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents: 2133
diff changeset
346
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
347 # Build the toplevel Makefile
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
348 Makefile: Makefile.in config.status
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
349 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) config.status
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
350
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
351 # Run the configure script. If config.status already exists,
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
352 # call it with the --recheck argument, which reruns configure with the
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
353 # same options as it was run last time; otherwise run the configure
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
354 # script with options taken from the $(WITH) variable
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
355 config.status: $(srcdir)/configure
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
356 if test -f config.status; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
357 then $(SHELL) config.status --recheck; \
2133
c16d693bfe73 run config.status after recheck
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
358 $(SHELL) config.status; \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
359 else $(SHELL) $(srcdir)/configure $(WITH); \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
360 fi
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
361
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
362 .PRECIOUS: config.status python
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
363
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
364 # Rerun configure with the same options as it was run last time,
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
365 # provided the config.status script exists
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
366 recheck:
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
367 $(SHELL) config.status --recheck
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
368 $(SHELL) config.status
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
369
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
370 # Rebuild the configure script from configure.in; also rebuild config.h.in
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
371 autoconf:
3739
79524829a730 split autoconf target in two
Guido van Rossum <guido@python.org>
parents: 3697
diff changeset
372 (cd $(srcdir); autoconf)
79524829a730 split autoconf target in two
Guido van Rossum <guido@python.org>
parents: 3697
diff changeset
373 (cd $(srcdir); autoheader)
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
374
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
375 # Create a tags file for vi
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
376 tags::
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
377 ctags -w -t Include/*.h
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
378 for i in $(SUBDIRS); do ctags -w -t -a $$i/*.[ch]; done
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
379 sort tags -o tags
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
380
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
381 # Create a tags file for GNU Emacs
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
382 TAGS::
1761
7a2e76ecb9ef * BUGS: new file (merger of unofficial BUGS1.0.x files)
Guido van Rossum <guido@python.org>
parents: 1748
diff changeset
383 etags Include/*.h
7a2e76ecb9ef * BUGS: new file (merger of unofficial BUGS1.0.x files)
Guido van Rossum <guido@python.org>
parents: 1748
diff changeset
384 for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
385
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
386 # Add dependencies to sub-Makefiles
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
387 depend:
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
388 @for i in $(SUBDIRS); do \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
389 (echo making depend in subdirectory $$i; cd $$i; \
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
390 $(MAKE) depend); \
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
391 done
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
392
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
393 # Sanitation targets -- clean leaves libraries, executables and tags
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
394 # files, which clobber removes those as well
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
395
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
396 localclean:
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
397 -rm -f core *~ [@,#]* *.old *.orig *.rej
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
398
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
399 clean: localclean
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
400 -for i in $(SUBDIRS); do \
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
401 (echo making clean in subdirectory $$i; cd $$i; \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
402 if test -f Makefile; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
403 then $(MAKE) clean; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
404 else $(MAKE) -f Makefile.*in clean; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
405 fi); \
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
406 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
407
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
408 localclobber: localclean
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
409 -rm -f tags TAGS python
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
410 -rm -f config.log config.cache config.h
1458
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
411
d8ba3cf9dabc Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
412 clobber: localclobber
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
413 -for i in $(SUBDIRS); do \
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
414 (echo clobbering subdirectory $$i; cd $$i; \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
415 if test -f Makefile; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
416 then $(MAKE) clobber; \
2594
ce9a7507e1ef the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
417 else $(MAKE) -f $(srcdir)/Makefile.in clobber; \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
418 fi); \
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
419 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
420
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
421 # Make things extra clean, before making a distribution:
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
422 # remove all generated files, even Makefile[.pre]
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
423 distclean: clobber
2594
ce9a7507e1ef the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
424 -$(MAKE) -f $(srcdir)/Makefile.in \
ce9a7507e1ef the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
425 SUBDIRS="$(SUBDIRSTOO)" clobber
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1992
diff changeset
426 -rm -f config.status config.log config.cache config.h Makefile
3112
36f4d5469915 remove Modules/Makefile on distclean
Guido van Rossum <guido@python.org>
parents: 2938
diff changeset
427 -rm -f Modules/Makefile
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
428 -for i in $(SUBDIRS) $(SUBDIRSTOO); do \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
429 for f in $$i/*.in; do \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
430 f=`basename "$$f" .in`; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
431 if test "$$f" != "*"; then \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
432 echo rm -f "$$i/$$f"; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
433 rm -f "$$i/$$f"; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
434 fi; \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
435 done; \
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
436 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
437
3623
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
438 # Check for smelly exported symbols (not starting with Py/_Py)
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
439 smelly: all
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
440 for i in $(SUBDIRS); do \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
441 echo --- $$i ---; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
442 nm -p $$i/lib$$i.a | \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
443 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
444 done
d41d89eb43e5 Added some comments to the top.
Guido van Rossum <guido@python.org>
parents: 3112
diff changeset
445
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
446 # Find files with funny names
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
447 funny:
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
448 find $(DISTDIRS) -type d \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
449 -o -name '*.[chs]' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
450 -o -name '*.py' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
451 -o -name '*.doc' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
452 -o -name '*.sty' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
453 -o -name '*.bib' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
454 -o -name '*.dat' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
455 -o -name '*.el' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
456 -o -name '*.fd' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
457 -o -name '*.in' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
458 -o -name '*.tex' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
459 -o -name '*,[vpt]' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
460 -o -name 'Setup' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
461 -o -name 'Setup.*' \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
462 -o -name README \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
463 -o -name Makefile \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
464 -o -name ChangeLog \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
465 -o -name Repository \
3697
81f535ca1d98 Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents: 3623
diff changeset
466 -o -name Root \
1748
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
467 -o -name Entries \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
468 -o -name Tag \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
469 -o -name tags \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
470 -o -name TAGS \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
471 -o -name .cvsignore \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
472 -o -name MANIFEST \
8286a662502b Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1458
diff changeset
473 -o -print