Catch situations where currentframe() returns None. See SF patch #1447410, this is...
[python.git] / Makefile.pre.in
blob056b57803ab9045cde3c25ec921d7bf89c1caf25
1 # Top-level Makefile for Python
3 # As distributed, this file is called Makefile.pre.in; it is processed
4 # into the real Makefile by running the script ./configure, which
5 # replaces things like @spam@ with values appropriate for your system.
6 # This means that if you edit Makefile, your changes get lost the next
7 # time you run the configure script.  Ideally, you can do:
9 #       ./configure
10 #       make
11 #       make test
12 #       make install
14 # If you have a previous version of Python installed that you don't
15 # want to overwrite, you can use "make altinstall" instead of "make
16 # install".  Refer to the "Installing" section in the README file for
17 # additional details.
19 # See also the section "Build instructions" in the README file.
21 # === Variables set by makesetup ===
23 MODOBJS=        _MODOBJS_
24 MODLIBS=        _MODLIBS_
26 # === Variables set by configure
27 VERSION=        @VERSION@
28 srcdir=         @srcdir@
29 VPATH=          @srcdir@
31 CC=             @CC@
32 CXX=            @CXX@
33 LINKCC=         @LINKCC@
34 AR=             @AR@
35 RANLIB=         @RANLIB@
36 SVNVERSION=     @SVNVERSION@
38 # Shell used by make (some versions default to the login shell, which is bad)
39 SHELL=          /bin/sh
41 # Use this to make a link between python$(VERSION) and python in $(BINDIR)
42 LN=             @LN@
44 # Portable install script (configure doesn't always guess right)
45 INSTALL=        @INSTALL@
46 INSTALL_PROGRAM=@INSTALL_PROGRAM@
47 INSTALL_SCRIPT= @INSTALL_SCRIPT@
48 INSTALL_DATA=   @INSTALL_DATA@
49 # Shared libraries must be installed with executable mode on some systems;
50 # rather than figuring out exactly which, we always give them executable mode.
51 # Also, making them read-only seems to be a good idea...
52 INSTALL_SHARED= ${INSTALL} -m 555
54 MAKESETUP=      $(srcdir)/Modules/makesetup
56 # Compiler options
57 OPT=            @OPT@
58 BASECFLAGS=     @BASECFLAGS@
59 CFLAGS=         $(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS)
60 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
61 # be able to build extension modules using the directories specified in the
62 # environment variables
63 CPPFLAGS=       -I. -I$(srcdir)/Include @CPPFLAGS@
64 LDFLAGS=        @LDFLAGS@
65 LDLAST=         @LDLAST@
66 SGI_ABI=        @SGI_ABI@
67 CCSHARED=       @CCSHARED@
68 LINKFORSHARED=  @LINKFORSHARED@
69 # Extra C flags added for building the interpreter object files.
70 CFLAGSFORSHARED=@CFLAGSFORSHARED@
71 # C flags used for building the interpreter object files
72 PY_CFLAGS=      $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
75 # Machine-dependent subdirectories
76 MACHDEP=        @MACHDEP@
78 # Install prefix for architecture-independent files
79 prefix=         @prefix@
81 # Install prefix for architecture-dependent files
82 exec_prefix=    @exec_prefix@
84 # Expanded directories
85 BINDIR=         $(exec_prefix)/bin
86 LIBDIR=         $(exec_prefix)/lib
87 MANDIR=         @mandir@
88 INCLUDEDIR=     @includedir@
89 CONFINCLUDEDIR= $(exec_prefix)/include
90 SCRIPTDIR=      $(prefix)/lib
92 # Detailed destination directories
93 BINLIBDEST=     $(LIBDIR)/python$(VERSION)
94 LIBDEST=        $(SCRIPTDIR)/python$(VERSION)
95 INCLUDEPY=      $(INCLUDEDIR)/python$(VERSION)
96 CONFINCLUDEPY=  $(CONFINCLUDEDIR)/python$(VERSION)
97 LIBP=           $(LIBDIR)/python$(VERSION)
99 # Symbols used for using shared libraries
100 SO=             @SO@
101 LDSHARED=       @LDSHARED@
102 BLDSHARED=      @BLDSHARED@
103 DESTSHARED=     $(BINLIBDEST)/lib-dynload
105 # Executable suffix (.exe on Windows and Mac OS X)
106 EXE=            @EXEEXT@
107 BUILDEXE=       @BUILDEXEEXT@
109 # Short name and location for Mac OS X Python framework
110 PYTHONFRAMEWORK=        @PYTHONFRAMEWORK@
111 PYTHONFRAMEWORKDIR=     @PYTHONFRAMEWORKDIR@
112 PYTHONFRAMEWORKPREFIX=  @PYTHONFRAMEWORKPREFIX@
113 PYTHONFRAMEWORKINSTALLDIR= @PYTHONFRAMEWORKINSTALLDIR@
114 # Deployment target selected during configure, to be checked
115 # by distutils
116 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
117 # Options to enable prebinding (for fast startup prior to Mac OS X 10.3)
118 OTHER_LIBTOOL_OPT=@OTHER_LIBTOOL_OPT@
120 # Environment to run shared python without installed libraries
121 RUNSHARED=       @RUNSHARED@
123 # Modes for directories, executables and data files created by the
124 # install process.  Default to user-only-writable for all file types.
125 DIRMODE=        755
126 EXEMODE=        755
127 FILEMODE=       644
129 # configure script arguments
130 CONFIG_ARGS=    @CONFIG_ARGS@
133 # Subdirectories with code
134 SRCDIRS=        @SRCDIRS@
136 # Other subdirectories
137 SUBDIRSTOO=     Include Lib Misc Demo
139 # Files and directories to be distributed
140 CONFIGFILES=    configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in
141 DISTFILES=      README ChangeLog $(CONFIGFILES)
142 DISTDIRS=       $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
143 DIST=           $(DISTFILES) $(DISTDIRS)
146 LIBRARY=        @LIBRARY@
147 LDLIBRARY=      @LDLIBRARY@
148 BLDLIBRARY=     @BLDLIBRARY@
149 DLLLIBRARY=     @DLLLIBRARY@
150 LDLIBRARYDIR=   @LDLIBRARYDIR@
151 INSTSONAME=     @INSTSONAME@
154 LIBS=           @LIBS@
155 LIBM=           @LIBM@
156 LIBC=           @LIBC@
157 SYSLIBS=        $(LIBM) $(LIBC)
158 SHLIBS=         @SHLIBS@
160 MAINOBJ=        @MAINOBJ@
161 THREADOBJ=      @THREADOBJ@
162 DLINCLDIR=      @DLINCLDIR@
163 DYNLOADFILE=    @DYNLOADFILE@
164 MACHDEP_OBJS=   @MACHDEP_OBJS@
165 UNICODE_OBJS=   @UNICODE_OBJS@
167 PYTHON=         python$(EXE)
168 BUILDPYTHON=    python$(BUILDEXE)
170 # === Definitions added by makesetup ===
173 ##########################################################################
174 # Modules
175 MODULE_OBJS=    \
176                 Modules/config.o \
177                 Modules/getpath.o \
178                 Modules/main.o \
179                 Modules/gcmodule.o
181 # Used of signalmodule.o is not available
182 SIGNAL_OBJS=    @SIGNAL_OBJS@
185 ##########################################################################
186 # Grammar
187 GRAMMAR_H=      $(srcdir)/Include/graminit.h
188 GRAMMAR_C=      $(srcdir)/Python/graminit.c
189 GRAMMAR_INPUT=  $(srcdir)/Grammar/Grammar
192 ##########################################################################
193 # Parser
194 PGEN=           Parser/pgen$(EXE)
196 POBJS=          \
197                 Parser/acceler.o \
198                 Parser/grammar1.o \
199                 Parser/listnode.o \
200                 Parser/node.o \
201                 Parser/parser.o \
202                 Parser/parsetok.o \
203                 Parser/bitset.o \
204                 Parser/metagrammar.o \
205                 Parser/firstsets.o \
206                 Parser/grammar.o \
207                 Parser/pgen.o
209 PARSER_OBJS=    $(POBJS) Parser/myreadline.o Parser/tokenizer.o
211 PGOBJS=         \
212                 Objects/obmalloc.o \
213                 Python/mysnprintf.o \
214                 Parser/tokenizer_pgen.o \
215                 Parser/printgrammar.o \
216                 Parser/pgenmain.o
218 PGENOBJS=       $(PGENMAIN) $(POBJS) $(PGOBJS)
220 ##########################################################################
221 # AST
222 AST_H=          $(srcdir)/Include/Python-ast.h
223 AST_C=          $(srcdir)/Python/Python-ast.c
224 AST_ASDL=       $(srcdir)/Parser/Python.asdl
226 ASDLGEN_FILES=  $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
227 # XXX Note that a build now requires Python exist before the build starts
228 ASDLGEN=        $(srcdir)/Parser/asdl_c.py -h $(srcdir)/Include -c $(srcdir)/Python
230 ##########################################################################
231 # Python
232 PYTHON_OBJS=    \
233                 Python/Python-ast.o \
234                 Python/asdl.o \
235                 Python/ast.o \
236                 Python/bltinmodule.o \
237                 Python/exceptions.o \
238                 Python/ceval.o \
239                 Python/compile.o \
240                 Python/codecs.o \
241                 Python/errors.o \
242                 Python/frozen.o \
243                 Python/frozenmain.o \
244                 Python/future.o \
245                 Python/getargs.o \
246                 Python/getcompiler.o \
247                 Python/getcopyright.o \
248                 Python/getmtime.o \
249                 Python/getplatform.o \
250                 Python/getversion.o \
251                 Python/graminit.o \
252                 Python/import.o \
253                 Python/importdl.o \
254                 Python/marshal.o \
255                 Python/modsupport.o \
256                 Python/mystrtoul.o \
257                 Python/mysnprintf.o \
258                 Python/pyarena.o \
259                 Python/pyfpe.o \
260                 Python/pystate.o \
261                 Python/pythonrun.o \
262                 Python/structmember.o \
263                 Python/symtable.o \
264                 Python/sysmodule.o \
265                 Python/traceback.o \
266                 Python/getopt.o \
267                 Python/pystrtod.o \
268                 Python/$(DYNLOADFILE) \
269                 $(MACHDEP_OBJS) \
270                 $(THREADOBJ)
273 ##########################################################################
274 # Objects
275 OBJECT_OBJS=    \
276                 Objects/abstract.o \
277                 Objects/boolobject.o \
278                 Objects/bufferobject.o \
279                 Objects/cellobject.o \
280                 Objects/classobject.o \
281                 Objects/cobject.o \
282                 Objects/codeobject.o \
283                 Objects/complexobject.o \
284                 Objects/descrobject.o \
285                 Objects/enumobject.o \
286                 Objects/genobject.o \
287                 Objects/fileobject.o \
288                 Objects/floatobject.o \
289                 Objects/frameobject.o \
290                 Objects/funcobject.o \
291                 Objects/intobject.o \
292                 Objects/iterobject.o \
293                 Objects/listobject.o \
294                 Objects/longobject.o \
295                 Objects/dictobject.o \
296                 Objects/methodobject.o \
297                 Objects/moduleobject.o \
298                 Objects/object.o \
299                 Objects/obmalloc.o \
300                 Objects/rangeobject.o \
301                 Objects/setobject.o \
302                 Objects/sliceobject.o \
303                 Objects/stringobject.o \
304                 Objects/structseq.o \
305                 Objects/tupleobject.o \
306                 Objects/typeobject.o \
307                 Objects/weakrefobject.o \
308                 $(UNICODE_OBJS)
311 ##########################################################################
312 # objects that get linked into the Python library
313 LIBRARY_OBJS=   \
314                 Modules/getbuildinfo.o \
315                 $(PARSER_OBJS) \
316                 $(OBJECT_OBJS) \
317                 $(PYTHON_OBJS) \
318                 $(MODULE_OBJS) \
319                 $(SIGNAL_OBJS) \
320                 $(MODOBJS)
322 #########################################################################
323 # Rules
325 # Default target
326 all:            $(BUILDPYTHON) oldsharedmods sharedmods
328 # Build the interpreter
329 $(BUILDPYTHON): Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY)
330                 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
331                         Modules/$(MAINOBJ) \
332                         $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
334 platform: $(BUILDPYTHON)
335         $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
338 # Build the shared modules
339 sharedmods: $(BUILDPYTHON)
340         case $$MAKEFLAGS in \
341         *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
342         *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
343         esac
345 # Build static library
346 # avoid long command lines, same as LIBRARY_OBJS
347 $(LIBRARY): $(LIBRARY_OBJS)
348         -rm -f $@
349         $(AR) cr $@ Modules/getbuildinfo.o
350         $(AR) cr $@ $(PARSER_OBJS)
351         $(AR) cr $@ $(OBJECT_OBJS)
352         $(AR) cr $@ $(PYTHON_OBJS)
353         $(AR) cr $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
354         $(AR) cr $@ $(MODOBJS)
355         $(RANLIB) $@
357 libpython$(VERSION).so: $(LIBRARY_OBJS)
358         if test $(INSTSONAME) != $(LDLIBRARY); then \
359                 $(LDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
360                 $(LN) -f $(INSTSONAME) $@; \
361         else\
362                 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
363         fi
365 libpython$(VERSION).sl: $(LIBRARY_OBJS)
366         $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)
368 # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
369 # minimal framework (not including the Lib directory and such) in the current
370 # directory.
371 RESSRCDIR=$(srcdir)/Mac/OSXResources/framework
372 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
373                 $(LIBRARY) \
374                 $(RESSRCDIR)/Info.plist \
375                 $(RESSRCDIR)/version.plist \
376                 $(RESSRCDIR)/English.lproj/InfoPlist.strings
377         $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
378         libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
379                 @LIBTOOL_CRUFT@
380         $(INSTALL) -d -m $(DIRMODE)  \
381                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
382         $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \
383                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
384         $(INSTALL_DATA) $(RESSRCDIR)/version.plist \
385                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/version.plist
386         $(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
387                 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj/InfoPlist.strings
388         $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
389         $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
390         $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
391         $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
393 # This rule builds the Cygwin Python DLL and import library if configured
394 # for a shared core library; otherwise, this rule is a noop.
395 $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
396         if test -n "$(DLLLIBRARY)"; then \
397                 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
398                         $(LIBS) $(MODLIBS) $(SYSLIBS); \
399         else true; \
400         fi
403 oldsharedmods: $(SHAREDMODS)
406 Makefile Modules/config.c: Makefile.pre \
407                                 $(srcdir)/Modules/config.c.in \
408                                 $(MAKESETUP) \
409                                 Modules/Setup.config \
410                                 Modules/Setup \
411                                 Modules/Setup.local
412         $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
413                                 -s Modules \
414                                 Modules/Setup.config \
415                                 Modules/Setup.local \
416                                 Modules/Setup
417         @mv config.c Modules
418         @echo "The Makefile was updated, you may need to re-run make."
421 Modules/Setup: $(srcdir)/Modules/Setup.dist
422         @if test -f Modules/Setup; then \
423                 echo "-----------------------------------------------"; \
424                 echo "Modules/Setup.dist is newer than Modules/Setup;"; \
425                 echo "check to make sure you have all the updates you"; \
426                 echo "need in your Modules/Setup file."; \
427                 echo "Usually, copying Setup.dist to Setup will work."; \
428                 echo "-----------------------------------------------"; \
429         fi
431 ############################################################################
432 # Special rules for object files
434 Modules/getbuildinfo.o: $(PARSER_OBJS) \
435                 $(OBJECT_OBJS) \
436                 $(PYTHON_OBJS) \
437                 $(MODULE_OBJS) \
438                 $(SIGNAL_OBJS) \
439                 $(MODOBJS) \
440                 $(srcdir)/Modules/getbuildinfo.c
441         $(CC) -c $(PY_CFLAGS) -DSVNVERSION=\"`LANG=C $(SVNVERSION)`\" -o $@ $(srcdir)/Modules/getbuildinfo.c
443 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
444         $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
445                 -DPREFIX='"$(prefix)"' \
446                 -DEXEC_PREFIX='"$(exec_prefix)"' \
447                 -DVERSION='"$(VERSION)"' \
448                 -DVPATH='"$(VPATH)"' \
449                 -o $@ $(srcdir)/Modules/getpath.c
451 Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
452         $(CXX) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/ccpython.cc
455 $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
456                 -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
458 $(PGEN):        $(PGENOBJS)
459                 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
461 Parser/grammar.o:       $(srcdir)/Parser/grammar.c \
462                                 $(srcdir)/Include/token.h \
463                                 $(srcdir)/Include/grammar.h
464 Parser/metagrammar.o:   $(srcdir)/Parser/metagrammar.c
466 Parser/tokenizer_pgen.o:        $(srcdir)/Parser/tokenizer.c
468 $(AST_H) $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
469         $(ASDLGEN) $(AST_ASDL)
471 Python/compile.o Python/symtable.o: $(GRAMMAR_H) $(AST_H)
473 Python/getplatform.o: $(srcdir)/Python/getplatform.c
474                 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
476 Python/importdl.o: $(srcdir)/Python/importdl.c
477                 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
479 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \
480                                 $(srcdir)/Objects/unicodetype_db.h
482 ############################################################################
483 # Header files
485 PYTHON_HEADERS= \
486                 Include/Python.h \
487                 Include/Python-ast.h \
488                 Include/asdl.h \
489                 Include/abstract.h \
490                 Include/boolobject.h \
491                 Include/bufferobject.h \
492                 Include/ceval.h \
493                 Include/classobject.h \
494                 Include/cobject.h \
495                 Include/code.h \
496                 Include/codecs.h \
497                 Include/compile.h \
498                 Include/complexobject.h \
499                 Include/descrobject.h \
500                 Include/dictobject.h \
501                 Include/enumobject.h \
502                 Include/genobject.h \
503                 Include/fileobject.h \
504                 Include/floatobject.h \
505                 Include/funcobject.h \
506                 Include/import.h \
507                 Include/intobject.h \
508                 Include/intrcheck.h \
509                 Include/iterobject.h \
510                 Include/listobject.h \
511                 Include/longobject.h \
512                 Include/methodobject.h \
513                 Include/modsupport.h \
514                 Include/moduleobject.h \
515                 Include/object.h \
516                 Include/objimpl.h \
517                 Include/patchlevel.h \
518                 Include/pyarena.h \
519                 Include/pydebug.h \
520                 Include/pyerrors.h \
521                 Include/pyfpe.h \
522                 Include/pymem.h \
523                 Include/pyport.h \
524                 Include/pystate.h \
525                 Include/pythonrun.h \
526                 Include/rangeobject.h \
527                 Include/setobject.h \
528                 Include/sliceobject.h \
529                 Include/stringobject.h \
530                 Include/structseq.h \
531                 Include/structmember.h \
532                 Include/symtable.h \
533                 Include/sysmodule.h \
534                 Include/traceback.h \
535                 Include/tupleobject.h \
536                 Include/unicodeobject.h \
537                 Include/weakrefobject.h \
538                 pyconfig.h
540 $(LIBRARY_OBJS) $(MODOBJS) Modules/$(MAINOBJ): $(PYTHON_HEADERS)
543 ######################################################################
545 # Test the interpreter (twice, once without .pyc files, once with)
546 # In the past, we've had problems where bugs in the marshalling or
547 # elsewhere caused bytecode read from .pyc files to behave differently
548 # than bytecode generated directly from a .py source file.  Sometimes
549 # the bytecode read from a .pyc file had the bug, somtimes the directly
550 # generated bytecode.  This is sometimes a very shy bug needing a lot of
551 # sample data.
553 TESTOPTS=       -l $(EXTRATESTOPTS)
554 TESTPROG=       $(srcdir)/Lib/test/regrtest.py
555 TESTPYTHON=     $(RUNSHARED) ./$(BUILDPYTHON) -E -tt
556 test:           all platform
557                 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
558                 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
559                 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
561 testall:        all platform
562                 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
563                 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
564                 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
566 # Like testall, but with a single pass only
567 buildbottest:   all platform
568                 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall -rw
570 QUICKTESTOPTS=  $(TESTOPTS) -x test_thread test_signal test_strftime \
571                 test_unicodedata test_re test_sre test_select test_poll \
572                 test_linuxaudiodev test_struct test_sunaudiodev test_zlib
573 quicktest:      all platform
574                 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
575                 -$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
576                 $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
578 MEMTESTOPTS=    $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \
579                 test_longexp
580 memtest:        all platform
581                 -rm -f $(srcdir)/Lib/test/*.py[co]
582                 -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
583                 $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
585 # Install everything
586 install:        altinstall bininstall maninstall
588 # Install almost everything without disturbing previous versions
589 altinstall:     altbininstall libinstall inclinstall libainstall \
590                 sharedinstall oldsharedinstall
592 # Install shared libraries enabled by Setup
593 DESTDIRS=       $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
595 oldsharedinstall: $(DESTSHARED) $(SHAREDMODS)
596                 @for i in X $(SHAREDMODS); do \
597                   if test $$i != X; then \
598                     echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
599                     $(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
600                   fi; \
601                 done
603 $(DESTSHARED):
604                 @for i in $(DESTDIRS); \
605                 do \
606                         if test ! -d $(DESTDIR)$$i; then \
607                                 echo "Creating directory $$i"; \
608                                 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
609                         else    true; \
610                         fi; \
611                 done
614 # Install the interpreter (by creating a hard link to python$(VERSION))
615 bininstall:     altbininstall
616         -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
617         then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
618         else true; \
619         fi
620         (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
622 # Install the interpreter with $(VERSION) affixed
623 # This goes into $(exec_prefix)
624 altbininstall:  $(BUILDPYTHON)
625         @if test "$(PYTHONFRAMEWORKDIR)" != no-framework; then \
626                 if test ! -f $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current/Resources/Info.plist; then \
627                         echo 'Framework build: use "make frameworkinstall" in stead of "make install"'; \
628                         exit 1; \
629                 fi; \
630         fi
631         @for i in $(BINDIR) $(LIBDIR); \
632         do \
633                 if test ! -d $(DESTDIR)$$i; then \
634                         echo "Creating directory $$i"; \
635                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
636                 else    true; \
637                 fi; \
638         done
639         $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE)
640         if test -f libpython$(VERSION)$(SO); then \
641                 if test "$(SO)" = .dll; then \
642                         $(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(BINDIR); \
643                 else \
644                         $(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
645                         if test libpython$(VERSION)$(SO) != $(INSTSONAME); then \
646                                 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
647                         fi \
648                 fi; \
649         else    true; \
650         fi
652 # Install the manual page
653 maninstall:
654         @for i in $(MANDIR) $(MANDIR)/man1; \
655         do \
656                 if test ! -d $(DESTDIR)$$i; then \
657                         echo "Creating directory $$i"; \
658                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
659                 else    true; \
660                 fi; \
661         done
662         $(INSTALL_DATA) $(srcdir)/Misc/python.man \
663                 $(DESTDIR)$(MANDIR)/man1/python.1
665 # Install the library
666 PLATDIR=        plat-$(MACHDEP)
667 EXTRAPLATDIR= @EXTRAPLATDIR@
668 EXTRAMACHDEPPATH=@EXTRAMACHDEPPATH@
669 MACHDEPS=       $(PLATDIR) $(EXTRAPLATDIR)
670 XMLLIBSUBDIRS=  xmlcore xmlcore/dom xmlcore/etree xmlcore/parsers xmlcore/sax
671 PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \
672         plat-mac/lib-scriptpackages/_builtinSuites \
673         plat-mac/lib-scriptpackages/CodeWarrior \
674         plat-mac/lib-scriptpackages/Explorer \
675         plat-mac/lib-scriptpackages/Finder \
676         plat-mac/lib-scriptpackages/Netscape \
677         plat-mac/lib-scriptpackages/StdSuites \
678         plat-mac/lib-scriptpackages/SystemEvents \
679         plat-mac/lib-scriptpackages/Terminal
680 PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
681 LIBSUBDIRS=     lib-old lib-tk site-packages test test/output test/data \
682                 test/decimaltestdata \
683                 encodings email email/test email/test/data compiler hotshot \
684                 logging bsddb bsddb/test csv ctypes idlelib idlelib/Icons \
685                 distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
686                 curses $(MACHDEPS)
687 libinstall:     $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
688         @for i in $(SCRIPTDIR) $(LIBDEST); \
689         do \
690                 if test ! -d $(DESTDIR)$$i; then \
691                         echo "Creating directory $$i"; \
692                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
693                 else    true; \
694                 fi; \
695         done
696         @for d in $(LIBSUBDIRS); \
697         do \
698                 a=$(srcdir)/Lib/$$d; \
699                 if test ! -d $$a; then continue; else true; fi; \
700                 b=$(LIBDEST)/$$d; \
701                 if test ! -d $(DESTDIR)$$b; then \
702                         echo "Creating directory $$b"; \
703                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
704                 else    true; \
705                 fi; \
706         done
707         @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc; \
708         do \
709                 if test -x $$i; then \
710                         $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \
711                         echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \
712                 else \
713                         $(INSTALL_DATA) $$i $(DESTDIR)$(LIBDEST); \
714                         echo $(INSTALL_DATA) $$i $(LIBDEST); \
715                 fi; \
716         done
717         @for d in $(LIBSUBDIRS); \
718         do \
719                 a=$(srcdir)/Lib/$$d; \
720                 if test ! -d $$a; then continue; else true; fi; \
721                 b=$(LIBDEST)/$$d; \
722                 for i in $$a/*; \
723                 do \
724                         case $$i in \
725                         *CVS) ;; \
726                         *.py[co]) ;; \
727                         *.orig) ;; \
728                         *~) ;; \
729                         *) \
730                                 if test -d $$i; then continue; fi; \
731                                 if test -x $$i; then \
732                                     echo $(INSTALL_SCRIPT) $$i $$b; \
733                                     $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \
734                                 else \
735                                     echo $(INSTALL_DATA) $$i $$b; \
736                                     $(INSTALL_DATA) $$i $(DESTDIR)$$b; \
737                                 fi;; \
738                         esac; \
739                 done; \
740         done
741         $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
742         PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
743                 ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
744                 -d $(LIBDEST) -f \
745                 -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
746         PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
747                 ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
748                 -d $(LIBDEST) -f \
749                 -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
750         -PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
751                 ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
752                 -d $(LIBDEST)/site-packages -f \
753                 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
754         -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
755                 ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
756                 -d $(LIBDEST)/site-packages -f \
757                 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
759 # Create the PLATDIR source directory, if one wasn't distributed..
760 $(srcdir)/Lib/$(PLATDIR):
761         mkdir $(srcdir)/Lib/$(PLATDIR)
762         cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
763         export PATH; PATH="`pwd`:$$PATH"; \
764         export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
765         export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
766         export EXE; EXE="$(BUILDEXE)"; \
767         cd $(srcdir)/Lib/$(PLATDIR); ./regen
769 # Install the include files
770 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
771 inclinstall:
772         @for i in $(INCLDIRSTOMAKE); \
773         do \
774                 if test ! -d $(DESTDIR)$$i; then \
775                         echo "Creating directory $$i"; \
776                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
777                 else    true; \
778                 fi; \
779         done
780         @for i in $(srcdir)/Include/*.h; \
781         do \
782                 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
783                 $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
784         done
785         $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
787 # Install the library and miscellaneous stuff needed for extending/embedding
788 # This goes into $(exec_prefix)
789 LIBPL=          $(LIBP)/config
790 libainstall:    all
791         @for i in $(LIBDIR) $(LIBP) $(LIBPL); \
792         do \
793                 if test ! -d $(DESTDIR)$$i; then \
794                         echo "Creating directory $$i"; \
795                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
796                 else    true; \
797                 fi; \
798         done
799         @if test -d $(LIBRARY); then :; else \
800                 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
801                         if test "$(SO)" = .dll; then \
802                                 $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
803                         else \
804                                 $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
805                                 $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
806                         fi; \
807                 else \
808                         echo Skip install of $(LIBRARY) - use make frameworkinstall; \
809                 fi; \
810         fi
811         $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
812         $(INSTALL_DATA) Modules/$(MAINOBJ) $(DESTDIR)$(LIBPL)/$(MAINOBJ)
813         $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in
814         $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
815         $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
816         $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
817         $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
818         $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
819         $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
820         @if [ -s Modules/python.exp -a \
821                 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
822                 echo; echo "Installing support files for building shared extension modules on AIX:"; \
823                 $(INSTALL_DATA) Modules/python.exp              \
824                                 $(DESTDIR)$(LIBPL)/python.exp;          \
825                 echo; echo "$(LIBPL)/python.exp";               \
826                 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix  \
827                                 $(DESTDIR)$(LIBPL)/makexp_aix;          \
828                 echo "$(LIBPL)/makexp_aix";                     \
829                 $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix   \
830                                 $(DESTDIR)$(LIBPL)/ld_so_aix;           \
831                 echo "$(LIBPL)/ld_so_aix";                      \
832                 echo; echo "See Misc/AIX-NOTES for details.";   \
833         else true; \
834         fi
835         @case "$(MACHDEP)" in beos*) \
836                 echo; echo "Installing support files for building shared extension modules on BeOS:"; \
837                 $(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README;      \
838                 echo; echo "$(LIBPL)/README";                   \
839                 $(INSTALL_SCRIPT) Modules/ar_beos $(DESTDIR)$(LIBPL)/ar_beos; \
840                 echo "$(LIBPL)/ar_beos";                        \
841                 $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_beos; \
842                 echo "$(LIBPL)/ld_so_beos";                     \
843                 echo; echo "See Misc/BeOS-NOTES for details.";  \
844                 ;; \
845         esac
847 # Install the dynamically loadable modules
848 # This goes into $(exec_prefix)
849 sharedinstall:
850         $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
851                 --prefix=$(prefix) \
852                 --install-scripts=$(BINDIR) \
853                 --install-platlib=$(DESTSHARED) \
854                 --root=/$(DESTDIR)
856 # Here are a couple of targets for MacOSX again, to install a full
857 # framework-based Python. frameworkinstall installs everything, the
858 # subtargets install specific parts. Much of the actual work is offloaded to
859 # the Makefile in Mac/OSX
861 frameworkinstall: frameworkinstallframework \
862         frameworkinstallapps frameworkinstallunixtools
864 # On install, we re-make the framework
865 # structure in the install location, /Library/Frameworks/ or the argument to
866 # --enable-framework. If --enable-framework has been specified then we have
867 # automatically set prefix to the location deep down in the framework, so we
868 # only have to cater for the structural bits of the framework.
870 frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib
872 frameworkinstallstructure:      $(LDLIBRARY)
873         @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
874                 echo Not configured with --enable-framework; \
875                 exit 1; \
876         else true; \
877         fi
878         @for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\
879                 if test ! -d $(DESTDIR)$$i; then \
880                         echo "Creating directory $(DESTDIR)$$i"; \
881                         $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
882                 else    true; \
883                 fi; \
884         done
885         $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers
886         $(INSTALL_DATA) $(RESSRCDIR)/Info.plist $(DESTDIR)$(prefix)/Resources/Info.plist
887         $(INSTALL_DATA) $(RESSRCDIR)/version.plist $(DESTDIR)$(prefix)/Resources/version.plist
888         $(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
889                 $(DESTDIR)$(prefix)/Resources/English.lproj/InfoPlist.strings
890         $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
891         $(LN) -fsn Versions/Current/Python $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Python
892         $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
893         $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
894         $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
896 # This installs Mac/Lib into the framework
897 frameworkinstallmaclib:
898         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installmacsubtree \
899                 $(RUNSHARED) BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
900                 srcdir=$(srcdir) builddir=. prefix=$(prefix) LIBDEST=$(LIBDEST) \
901                 DESTDIR=$(DESTDIR)
903 # This installs the IDE, the Launcher and other apps into /Applications
904 frameworkinstallapps:
905         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installapps \
906                 $(RUNSHARED) BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
907                 srcdir=$(srcdir) builddir=. DESTDIR=$(DESTDIR) prefix=$(prefix)
909 # This install the unix python and pythonw tools in /usr/local/bin
910 frameworkinstallunixtools:
911         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installunixtools \
912                 DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
913                 srcdir=$(srcdir) builddir=. DESTDIR=$(DESTDIR) prefix=$(prefix)
915 # This installs the Demos and Tools into the applications directory.
916 # It is not part of a normal frameworkinstall
917 frameworkinstallextras:
918         $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installextras \
919                 $(RUNSHARED) BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
920                 srcdir=$(srcdir) builddir=. DESTDIR=$(DESTDIR)
922 # This installs a few of the useful scripts in Tools/scripts
923 scriptsinstall:
924         SRCDIR=$(srcdir) $(RUNSHARED) \
925         ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \
926         --prefix=$(prefix) \
927         --install-scripts=$(BINDIR) \
928         --root=/$(DESTDIR)
930 # Build the toplevel Makefile
931 Makefile.pre: Makefile.pre.in config.status
932         CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status
933         $(MAKE) -f Makefile.pre Makefile
935 # Run the configure script.
936 config.status:  $(srcdir)/configure
937         $(SHELL) $(srcdir)/configure $(CONFIG_ARGS)
939 .PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre
941 # Some make's put the object file in the current directory
942 .c.o:
943         $(CC) -c $(PY_CFLAGS) -o $@ $<
945 # Rerun configure with the same options as it was run last time,
946 # provided the config.status script exists
947 recheck:
948         $(SHELL) config.status --recheck
949         $(SHELL) config.status
951 # Rebuild the configure script from configure.in; also rebuild pyconfig.h.in
952 autoconf:
953         (cd $(srcdir); autoconf)
954         (cd $(srcdir); autoheader)
956 # Create a tags file for vi
957 tags::
958         cd $(srcdir); \
959         ctags -w -t Include/*.h; \
960         for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \
961         done; \
962         sort -o tags tags
964 # Create a tags file for GNU Emacs
965 TAGS::
966         cd $(srcdir); \
967         etags Include/*.h; \
968         for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
970 # Sanitation targets -- clean leaves libraries, executables and tags
971 # files, which clobber removes those as well
973 clean:
974         find . -name '*.o' -exec rm -f {} ';'
975         find . -name '*.s[ol]' -exec rm -f {} ';'
976         find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
977         find $(srcdir) -name 'fficonfig.h' -exec rm -f {} ';'
978         find $(srcdir) -name 'fficonfig.py' -exec rm -f {} ';'
980 clobber: clean
981         -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
982                 tags TAGS \
983                 config.cache config.log pyconfig.h Modules/config.c
984         -rm -rf build platform
985         -rm -rf $(PYTHONFRAMEWORKDIR)
987 # Make things extra clean, before making a distribution:
988 # remove all generated files, even Makefile[.pre]
989 # Keep configure and Python-ast.[ch], it's possible they can't be generated
990 distclean: clobber
991         -rm -f core Makefile Makefile.pre config.status \
992                 Modules/Setup Modules/Setup.local Modules/Setup.config
993         find $(srcdir) '(' -name '*.fdc' -o -name '*~' \
994                            -o -name '[@,#]*' -o -name '*.old' \
995                            -o -name '*.orig' -o -name '*.rej' \
996                            -o -name '*.bak' ')' \
997                            -exec rm -f {} ';'
999 # Check for smelly exported symbols (not starting with Py/_Py)
1000 smelly: all
1001         nm -p $(LIBRARY) | \
1002                 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
1004 # Find files with funny names
1005 funny:
1006         find $(DISTDIRS) -type d \
1007                 -o -name '*.[chs]' \
1008                 -o -name '*.py' \
1009                 -o -name '*.doc' \
1010                 -o -name '*.sty' \
1011                 -o -name '*.bib' \
1012                 -o -name '*.dat' \
1013                 -o -name '*.el' \
1014                 -o -name '*.fd' \
1015                 -o -name '*.in' \
1016                 -o -name '*.tex' \
1017                 -o -name '*,[vpt]' \
1018                 -o -name 'Setup' \
1019                 -o -name 'Setup.*' \
1020                 -o -name README \
1021                 -o -name Makefile \
1022                 -o -name ChangeLog \
1023                 -o -name Repository \
1024                 -o -name Root \
1025                 -o -name Entries \
1026                 -o -name Tag \
1027                 -o -name tags \
1028                 -o -name TAGS \
1029                 -o -name .cvsignore \
1030                 -o -name MANIFEST \
1031                 -o -print
1033 # Dependencies
1035 Python/thread.o: @THREADHEADERS@
1037 # Declare targets that aren't real files
1038 .PHONY: all sharedmods oldsharedmods test quicktest memtest
1039 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
1040 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
1041 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1042 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1043 .PHONY: recheck autoconf clean clobber distclean smelly funny
1045 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY