Mercurial > cpython-lru_cache-weakref
annotate Makefile.in @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | f8bbd71fb819 |
| children | f5f7c7395687 |
| 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 |
|
5030
00c3cb107e5f
Bump install version to 1.5.
Guido van Rossum <guido@python.org>
parents:
4936
diff
changeset
|
80 VERSION= 1.5 |
|
3808
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 | 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 | 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 |
|
5339
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
148 python: $(SUBDIRS) |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
149 |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
150 $(SUBDIRS): Makefiles |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
151 |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
152 Parser: |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
153 cd Parser ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \ |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
154 prefix="$(prefix)" exec_prefix="$(exec_prefix)" all |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
155 |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
156 Python: |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
157 cd Python ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \ |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
158 prefix="$(prefix)" exec_prefix="$(exec_prefix)" all |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
159 |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
160 Objects: |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
161 cd Objects ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \ |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
162 prefix="$(prefix)" exec_prefix="$(exec_prefix)" all |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
163 |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
164 Modules: Parser Python Objects |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
165 cd Modules ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \ |
|
b0a3140cc9b1
Unroll the for loop used for building python, so the first three
Guido van Rossum <guido@python.org>
parents:
5296
diff
changeset
|
166 prefix="$(prefix)" exec_prefix="$(exec_prefix)" all |
|
1458
d8ba3cf9dabc
Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
167 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
168 # Test the interpreter (twice, once without .pyc files, once with) |
|
4855
43ab0fefe4a1
Switched over to use the new testregr.py test harness.
Barry Warsaw <barry@python.org>
parents:
4503
diff
changeset
|
169 TESTOPTS= |
|
4868
bf4db2a4bb54
Add $(srcdir) in front of the test program's name (else it won't work
Guido van Rossum <guido@python.org>
parents:
4855
diff
changeset
|
170 TESTPROG= $(srcdir)/Lib/test/regrtest.py |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
171 test: python |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
172 -rm -f $(srcdir)/Lib/test/*.pyc |
|
5706
f8bbd71fb819
Don't stop if the tests fail the first time around.
Guido van Rossum <guido@python.org>
parents:
5589
diff
changeset
|
173 -PYTHONPATH= ./python $(TESTPROG) $(TESTOPTS) |
|
5589
795ca975d96f
Force PYTHONPATH= empty when running test suite.
Guido van Rossum <guido@python.org>
parents:
5496
diff
changeset
|
174 PYTHONPATH= ./python $(TESTPROG) $(TESTOPTS) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
175 |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
176 # Install everything |
|
3888
3c75306a65ce
Correct typo (intall -> install)
Guido van Rossum <guido@python.org>
parents:
3880
diff
changeset
|
177 install: altinstall bininstall maninstall |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
178 |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
179 # Install almost everything without disturbing previous versions |
|
3849
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
180 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
|
181 |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
182 # 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
|
183 bininstall: altbininstall |
|
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
184 -if test -f $(BINDIR)/python; \ |
|
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
185 then rm -f $(BINDIR)/python; \ |
|
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
186 else true; \ |
|
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
187 fi |
|
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
188 (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
|
189 |
|
3808
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
190 # Install the interpreter with $(VERSION) affixed |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
191 # This goes into $(exec_prefix) |
|
3808
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
192 altbininstall: python |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
193 @for i in $(BINDIR); \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
194 do \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
195 if test ! -d $$i; then \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
196 echo "Creating directory $$i"; \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
197 mkdir $$i; \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
198 chmod 755 $$i; \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
199 else true; \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
200 fi; \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
201 done |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
202 $(INSTALL_PROGRAM) python $(BINDIR)/python$(VERSION) |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
203 |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
204 # Install the manual page |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
205 maninstall: |
|
3697
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
206 @for i in $(MANDIR) $(MANDIR)/man1; \ |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
207 do \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
208 if test ! -d $$i; then \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
209 echo "Creating directory $$i"; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
210 mkdir $$i; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
211 chmod 755 $$i; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
212 else true; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
213 fi; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
214 done |
|
2196
5e568bacfbe9
define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents:
2163
diff
changeset
|
215 $(INSTALL_DATA) $(srcdir)/Misc/python.man \ |
|
1992
f49527ecdb3a
run sharedinstall; add BINDIR macros etc
Guido van Rossum <guido@python.org>
parents:
1969
diff
changeset
|
216 $(MANDIR)/man1/python.1 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
217 |
|
3849
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
218 # 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
|
219 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
|
220 LIBSUBDIRS= stdwin tkinter test $(MACHDEPS) |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
221 libinstall: python $(srcdir)/Lib/$(MACHDEP) |
|
3849
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
222 @for i in $(SCRIPTDIR) $(LIBDEST); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
223 do \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
224 if test ! -d $$i; then \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
225 echo "Creating directory $$i"; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
226 mkdir $$i; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
227 chmod 755 $$i; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
228 else true; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
229 fi; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
230 done |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
231 @for d in $(LIBSUBDIRS); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
232 do \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
233 a=$(srcdir)/Lib/$$d; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
234 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
|
235 b=$(LIBDEST)/$$d; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
236 if test ! -d $$b; then \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
237 echo "Creating directory $$b"; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
238 mkdir $$b; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
239 chmod 755 $$b; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
240 else true; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
241 fi; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
242 done |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
243 @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
|
244 do \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
245 if test -x $$i; then \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
246 $(INSTALL_PROGRAM) $$i $(LIBDEST); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
247 echo $(INSTALL_PROGRAM) $$i $(LIBDEST); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
248 else \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
249 $(INSTALL_DATA) $$i $(LIBDEST); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
250 echo $(INSTALL_DATA) $$i $(LIBDEST); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
251 fi; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
252 done |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
253 @for d in $(LIBSUBDIRS); \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
254 do \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
255 a=$(srcdir)/Lib/$$d; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
256 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
|
257 b=$(LIBDEST)/$$d; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
258 for i in $$a/*; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
259 do \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
260 case $$i in \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
261 *CVS) ;; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
262 *.pyc) ;; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
263 *~) ;; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
264 *) \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
265 if test -x $$i; then \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
266 echo $(INSTALL_PROGRAM) $$i $$b; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
267 $(INSTALL_PROGRAM) $$i $$b; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
268 else \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
269 echo $(INSTALL_DATA) $$i $$b; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
270 $(INSTALL_DATA) $$i $$b; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
271 fi;; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
272 esac; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
273 done; \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
274 done |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
275 PYTHONPATH=$(LIBDEST) \ |
|
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
276 ./python $(LIBDEST)/compileall.py $(LIBDEST) |
| 5185 | 277 PYTHONPATH=$(LIBDEST) \ |
| 278 ./python -O $(LIBDEST)/compileall.py $(LIBDEST) | |
|
3849
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
279 |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
280 # 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
|
281 $(srcdir)/Lib/$(MACHDEP): |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
282 mkdir $(srcdir)/Lib/$(MACHDEP) |
|
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
283 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
|
284 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
|
285 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
|
286 cd $(srcdir)/Lib/$(MACHDEP); ./regen |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
287 |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
288 # Install the include files |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
289 inclinstall: |
|
3697
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
290 @for i in $(INCLUDEDIR) $(INCLUDEPY); \ |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
291 do \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
292 if test ! -d $$i; then \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
293 echo "Creating directory $$i"; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
294 mkdir $$i; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
295 chmod 755 $$i; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
296 else true; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
297 fi; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
298 done |
|
3697
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
299 @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
|
300 do \ |
|
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
301 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
|
302 $(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
|
303 done |
|
1458
d8ba3cf9dabc
Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
304 |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
305 # 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
|
306 # This goes into $(exec_prefix) |
|
3849
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
307 LIBPL= $(LIBP)/config |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
308 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
|
309 @for i in $(LIBDIR) $(LIBP) $(LIBPL); \ |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
310 do \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
311 if test ! -d $$i; then \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
312 echo "Creating directory $$i"; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
313 mkdir $$i; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
314 chmod 755 $$i; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
315 else true; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
316 fi; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
317 done |
|
3697
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
318 @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
|
319 echo Installing in subdirectory $$i; \ |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
320 $(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
|
321 $(RANLIB) $(LIBPL)/lib$$i.a; \ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
322 done |
|
2196
5e568bacfbe9
define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents:
2163
diff
changeset
|
323 $(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
|
324 $(INSTALL_DATA) $(srcdir)/Modules/getpath.c $(LIBPL)/getpath.c |
|
5296
7aa4566014c6
(Sjoerd:) Install getbuildinfo.c in config/ so extensions can use it.
Guido van Rossum <guido@python.org>
parents:
5185
diff
changeset
|
325 $(INSTALL_DATA) $(srcdir)/Modules/getbuildinfo.c $(LIBPL)/getbuildinfo.c |
|
2196
5e568bacfbe9
define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents:
2163
diff
changeset
|
326 $(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
|
327 $(INSTALL_DATA) Modules/Makefile $(LIBPL)/Makefile |
|
5e568bacfbe9
define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents:
2163
diff
changeset
|
328 $(INSTALL_DATA) Modules/Setup $(LIBPL)/Setup |
|
3777
f35dde7f4143
Use INSTALL_PROGRAM for makesetup
Guido van Rossum <guido@python.org>
parents:
3739
diff
changeset
|
329 $(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
|
330 $(INSTALL_DATA) config.h $(LIBPL)/config.h |
|
5e568bacfbe9
define INSTALL_PROGRAM and INSTALL_DATA
Guido van Rossum <guido@python.org>
parents:
2163
diff
changeset
|
331 $(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
|
332 $(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
|
333 |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
334 # Install the dynamically loadable modules |
|
3880
d0b4566e2107
Some more install changes:
Guido van Rossum <guido@python.org>
parents:
3849
diff
changeset
|
335 # This goes into $(exec_prefix) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
336 sharedinstall: |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
337 cd Modules; $(MAKE) \ |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
338 OPT="$(OPT)" \ |
|
3849
69dcc02e3135
More changes to install targets.
Guido van Rossum <guido@python.org>
parents:
3808
diff
changeset
|
339 VERSION="$(VERSION)" \ |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
340 SO="$(SO)" \ |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
341 LDSHARED="$(LDSHARED)" \ |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
342 CCSHARED="$(CCSHARED)" \ |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
343 LINKFORSHARED="$(LINKFORSHARED)" \ |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
344 DESTSHARED="$(DESTSHARED)" \ |
|
3808
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
345 prefix="$(prefix)" \ |
|
17a2891e627f
Append version number to library install directory.
Guido van Rossum <guido@python.org>
parents:
3777
diff
changeset
|
346 exec_prefix="$(exec_prefix)" \ |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
347 sharedinstall |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1857
diff
changeset
|
348 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
349 # Build the sub-Makefiles |
|
2163
ee0b3cb37af8
be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents:
2133
diff
changeset
|
350 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
|
351 (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
|
352 @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
|
353 (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
|
354 $(MAKE) Makefile); \ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
355 done |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
356 |
|
2163
ee0b3cb37af8
be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents:
2133
diff
changeset
|
357 # 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
|
358 Modules/Makefile.pre: config.status |
|
ee0b3cb37af8
be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents:
2133
diff
changeset
|
359 $(SHELL) config.status |
|
ee0b3cb37af8
be more careful about building Modules/Makefile.pre
Guido van Rossum <guido@python.org>
parents:
2133
diff
changeset
|
360 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
361 # Build the toplevel Makefile |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
362 Makefile: Makefile.in config.status |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
363 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
|
364 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
365 # 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
|
366 # 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
|
367 # 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
|
368 # 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
|
369 config.status: $(srcdir)/configure |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
370 if test -f config.status; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
371 then $(SHELL) config.status --recheck; \ |
|
2133
c16d693bfe73
run config.status after recheck
Guido van Rossum <guido@python.org>
parents:
2057
diff
changeset
|
372 $(SHELL) config.status; \ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
373 else $(SHELL) $(srcdir)/configure $(WITH); \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
374 fi |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
375 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
376 .PRECIOUS: config.status python |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
377 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
378 # 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
|
379 # provided the config.status script exists |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
380 recheck: |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
381 $(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
|
382 $(SHELL) config.status |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
383 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
384 # 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
|
385 autoconf: |
|
3739
79524829a730
split autoconf target in two
Guido van Rossum <guido@python.org>
parents:
3697
diff
changeset
|
386 (cd $(srcdir); autoconf) |
|
79524829a730
split autoconf target in two
Guido van Rossum <guido@python.org>
parents:
3697
diff
changeset
|
387 (cd $(srcdir); autoheader) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
388 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
389 # Create a tags file for vi |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
390 tags:: |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
391 ctags -w -t Include/*.h |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
392 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
|
393 sort tags -o tags |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
394 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
395 # 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
|
396 TAGS:: |
|
1761
7a2e76ecb9ef
* BUGS: new file (merger of unofficial BUGS1.0.x files)
Guido van Rossum <guido@python.org>
parents:
1748
diff
changeset
|
397 etags Include/*.h |
|
7a2e76ecb9ef
* BUGS: new file (merger of unofficial BUGS1.0.x files)
Guido van Rossum <guido@python.org>
parents:
1748
diff
changeset
|
398 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
|
399 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
400 # 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
|
401 depend: |
|
3697
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
402 @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
|
403 (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
|
404 $(MAKE) depend); \ |
|
1458
d8ba3cf9dabc
Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
405 done |
| 1453 | 406 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
407 # 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
|
408 # 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
|
409 |
| 1453 | 410 localclean: |
| 411 -rm -f core *~ [@,#]* *.old *.orig *.rej | |
| 412 | |
| 413 clean: localclean | |
| 414 -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
|
415 (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
|
416 if test -f Makefile; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
417 then $(MAKE) clean; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
418 else $(MAKE) -f Makefile.*in clean; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
419 fi); \ |
| 1453 | 420 done |
| 421 | |
|
1458
d8ba3cf9dabc
Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
422 localclobber: localclean |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
423 -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
|
424 -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
|
425 |
|
d8ba3cf9dabc
Added depend target; cosmetic changes to other targets
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
426 clobber: localclobber |
| 1453 | 427 -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
|
428 (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
|
429 if test -f Makefile; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
430 then $(MAKE) clobber; \ |
| 2594 | 431 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
|
432 fi); \ |
| 1453 | 433 done |
| 434 | |
|
3697
81f535ca1d98
Some cleanup; make for loops over subdirs less noisy, more informative.
Guido van Rossum <guido@python.org>
parents:
3623
diff
changeset
|
435 # 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
|
436 # remove all generated files, even Makefile[.pre] |
| 1453 | 437 distclean: clobber |
| 2594 | 438 -$(MAKE) -f $(srcdir)/Makefile.in \ |
| 439 SUBDIRS="$(SUBDIRSTOO)" clobber | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1992
diff
changeset
|
440 -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
|
441 -rm -f Modules/Makefile |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
442 -for i in $(SUBDIRS) $(SUBDIRSTOO); do \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
443 for f in $$i/*.in; do \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
444 f=`basename "$$f" .in`; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
445 if test "$$f" != "*"; then \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
446 echo rm -f "$$i/$$f"; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
447 rm -f "$$i/$$f"; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
448 fi; \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
449 done; \ |
| 1453 | 450 done |
| 451 | |
|
3623
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
452 # 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
|
453 smelly: all |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
454 for i in $(SUBDIRS); do \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
455 echo --- $$i ---; \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
456 nm -p $$i/lib$$i.a | \ |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
457 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
|
458 done |
|
d41d89eb43e5
Added some comments to the top.
Guido van Rossum <guido@python.org>
parents:
3112
diff
changeset
|
459 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
460 # 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
|
461 funny: |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
462 find $(DISTDIRS) -type d \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
463 -o -name '*.[chs]' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
464 -o -name '*.py' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
465 -o -name '*.doc' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
466 -o -name '*.sty' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
467 -o -name '*.bib' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
468 -o -name '*.dat' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
469 -o -name '*.el' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
470 -o -name '*.fd' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
471 -o -name '*.in' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
472 -o -name '*.tex' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
473 -o -name '*,[vpt]' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
474 -o -name 'Setup' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
475 -o -name 'Setup.*' \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
476 -o -name README \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
477 -o -name Makefile \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
478 -o -name ChangeLog \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
479 -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
|
480 -o -name Root \ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
481 -o -name Entries \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
482 -o -name Tag \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
483 -o -name tags \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
484 -o -name TAGS \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
485 -o -name .cvsignore \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
486 -o -name MANIFEST \ |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1458
diff
changeset
|
487 -o -print |
