Lines Matching +full:python +full:- +full:test
1 # Top-level Makefile for Python
11 # make test
14 # If you have a previous version of Python installed that you don't
55 # Use this to make a link between python$(VERSION) and python in $(BINDIR)
65 # Also, making them read-only seems to be a good idea...
66 INSTALL_SHARED= ${INSTALL} -m 555
79 CPPFLAGS= -I. -IInclude -I$(srcdir)/Include @CPPFLAGS@
89 PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
92 # Machine-dependent subdirectories
98 # Install prefix for architecture-independent files
101 # Install prefix for architecture-dependent files
116 BINLIBDEST= $(LIBDIR)/python$(VERSION)
117 LIBDEST= $(SCRIPTDIR)/python$(VERSION)
118 INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
119 CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(VERSION)
120 LIBP= $(LIBDIR)/python$(VERSION)
127 DESTSHARED= $(BINLIBDEST)/lib-dynload
133 # Short name and location for Mac OS X Python framework
148 # Environment to run shared python without installed libraries
155 # install process. Default to user-only-writable for all file types.
173 DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
195 LIBOBJDIR= Python/
199 PYTHON= python$(EXE)
200 BUILDPYTHON= python$(BUILDEXE)
207 # Tcl and Tk config info from --with-tcltk-includes and -libs options
211 # The task to run while instrument when building the profile-opt target
212 # We exclude unittests with -x that take a rediculious amount of time to
214 PROFILE_TASK=-m test.regrtest --pgo -x test_asyncore test_gdb test_multiprocessing test_subprocess
218 COVERAGE_REPORT=$(abs_builddir)/lcov-report
219 COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report"
274 Python/mysnprintf.c \
275 Python/pyctype.c \
282 Python/mysnprintf.o \
283 Python/pyctype.o \
297 Python/_warnings.o \
298 Python/Python-ast.o \
299 Python/asdl.o \
300 Python/ast.o \
301 Python/bltinmodule.o \
302 Python/ceval.o \
303 Python/compile.o \
304 Python/codecs.o \
305 Python/errors.o \
306 Python/frozen.o \
307 Python/frozenmain.o \
308 Python/future.o \
309 Python/getargs.o \
310 Python/getcompiler.o \
311 Python/getcopyright.o \
312 Python/getplatform.o \
313 Python/getversion.o \
314 Python/graminit.o \
315 Python/import.o \
316 Python/importdl.o \
317 Python/marshal.o \
318 Python/modsupport.o \
319 Python/mystrtoul.o \
320 Python/mysnprintf.o \
321 Python/peephole.o \
322 Python/pyarena.o \
323 Python/pyctype.o \
324 Python/pyfpe.o \
325 Python/pymath.o \
326 Python/pystate.o \
327 Python/pythonrun.o \
328 Python/random.o \
329 Python/structmember.o \
330 Python/symtable.o \
331 Python/sysmodule.o \
332 Python/traceback.o \
333 Python/getopt.o \
334 Python/pystrcmp.o \
335 Python/pystrtod.o \
336 Python/dtoa.o \
337 Python/formatter_unicode.o \
338 Python/formatter_string.o \
339 Python/$(DYNLOADFILE) \
389 # objects that get linked into the Python library
404 build_all: check-clean-src $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
407 check-clean-src:
408 @if test -n "$(VPATH)" -a -f "$(srcdir)/Modules/python.o"; then \
410 …echo "Building Python out of the source tree (in $(abs_builddir)) requires a clean source tree ($(…
411 echo "Try to run: make -C \"$(srcdir)\" clean" ; \
416 profile-opt:
418 echo "Error: Cannot perform PGO build because llvm-profdata was not found in PATH" ;\
424 $(MAKE) profile-removal
426 $(MAKE) profile-removal
433 $(MAKE) profile-removal
449 .PHONY=coverage coverage-lcov coverage-report
452 $(MAKE) clean profile-removal
453 …$(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -l…
455 coverage-lcov:
457 @rm -f $(COVERAGE_INFO)
458 @rm -rf $(COVERAGE_REPORT)
459 @lcov --capture --directory $(abs_builddir) \
460 --base-directory $(realpath $(abs_builddir)) \
461 --path $(realpath $(abs_srcdir)) \
462 --output-file $(COVERAGE_INFO)
464 @lcov --remove $(COVERAGE_INFO) \
471 --output-file $(COVERAGE_INFO)
472 @genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \
479 coverage-report: regen-grammar
485 $(MAKE) coverage-lcov
489 $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY)
490 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
491 Modules/python.o \
495 …$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print get_p…
497 # Create build directory and generate the sysconfig build-time data there.
499 # sys.path fixup -- see Modules/getpath.c.
502 # initialization to succeed. It will be overwritten by generate-posix-vars
506 $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\
507 if test $$? -ne 0 ; then \
508 echo "generate-posix-vars failed" ; \
509 rm -f ./pybuilddir.txt ; \
515 $(CC) -c $(CCSHARED) $(PY_CFLAGS) -o $@ $<
519 # -s, --silent or --quiet is always the first char.
520 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
523 *\ -s*|s*) quiet="-q";; \
533 -rm -f $@
543 if test $(INSTSONAME) != $(LDLIBRARY); then \
544 …$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(L…
545 $(LN) -f $(INSTSONAME) $@; \
547 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
551 …-dynamiclib -Wl,-single_module $(LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/li…
555 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST)
557 # Copy up the gdb python hooks into a position where they can be automatically
558 # loaded by gdb during Lib/test/test_gdb.py
562 gdbhooks: $(BUILDPYTHON)-gdb.py
565 $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS)
566 $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py
575 $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
576 $(CC) -o $(LDLIBRARY) $(LDFLAGS) -dynamiclib \
577 -all_load $(LIBRARY) -Wl,-single_module \
578 -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
579 -compatibility_version $(VERSION) \
580 -current_version $(VERSION);
581 $(INSTALL) -d -m $(DIRMODE) \
585 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
586 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
587 $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
588 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
590 # This rule builds the Cygwin Python DLL and import library if configured
593 if test -n "$(DLLLIBRARY)"; then \
594 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
609 $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
610 -s Modules \
615 @echo "The Makefile was updated, you may need to re-run make."
619 @if test -f Modules/Setup; then \
620 echo "-----------------------------------------------"; \
625 echo "-----------------------------------------------"; \
632 regen-all: regen-opcode-targets regen-grammar regen-ast
644 $(CC) -c $(PY_CFLAGS) \
645 -DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
646 -DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
647 -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
648 -o $@ $(srcdir)/Modules/getbuildinfo.c
651 $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
652 -DPREFIX='"$(prefix)"' \
653 -DEXEC_PREFIX='"$(exec_prefix)"' \
654 -DVERSION='"$(VERSION)"' \
655 -DVPATH='"$(VPATH)"' \
656 -o $@ $(srcdir)/Modules/getpath.c
658 Modules/python.o: $(srcdir)/Modules/python.c
659 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c
668 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
670 .PHONY: regen-grammar
671 regen-grammar: $(PGEN)
672 # Regenerate Include/graminit.h and Python/graminit.c
677 $(srcdir)/Python/graminit.c
688 .PHONY=regen-ast
689 regen-ast:
690 # Regenerate Include/Python-ast.h using Parser/asdl_c.py -h
693 -h $(srcdir)/Include \
694 $(srcdir)/Parser/Python.asdl
695 # Regenerate Python/Python-ast.c using Parser/asdl_c.py -c
696 $(MKDIR_P) $(srcdir)/Python
698 -c $(srcdir)/Python \
699 $(srcdir)/Parser/Python.asdl
701 Python/compile.o Python/symtable.o Python/ast.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Pyt…
703 Python/getplatform.o: $(srcdir)/Python/getplatform.c
704 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
706 Python/importdl.o: $(srcdir)/Python/importdl.c
707 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
736 .PHONY: regen-opcode-targets
737 regen-opcode-targets:
738 # Regenerate Python/opcode_targets.h from Lib/opcode.py
739 # using Python/makeopcodetargets.py
740 $(PYTHON_FOR_REGEN) $(srcdir)/Python/makeopcodetargets.py \
741 $(srcdir)/Python/opcode_targets.h
743 Python/ceval.o: $(srcdir)/Python/opcode_targets.h
745 Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
748 Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \
755 Include/Python-ast.h \
756 Include/Python.h \
838 $(srcdir)/Include/Python-ast.h
840 $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
845 # Test the interpreter (twice, once without .pyc files, once with)
853 .PHONY: test testall testuniversal buildbottest pythoninfo
855 TESTOPTS= -l $(EXTRATESTOPTS)
856 TESTPROG= $(srcdir)/Lib/test/regrtest.py
857 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)
858 test: @DEF_MAKE_RULE@ platform
859 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
860 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
864 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
866 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
867 -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
868 $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
877 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
878 -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
879 $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS)
880 $(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) -uall $(TESTOPTS)
886 -@if which pybuildbot.identify >/dev/null 2>&1; then \
889 $(TESTPYTHON) -R $(TESTPROG) -uall --slowest -rwW $(TESTOPTS)
892 $(RUNSHARED) ./$(BUILDPYTHON) -m test.pythoninfo
894 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
899 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
900 -$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
903 MEMTESTOPTS= $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \
906 -rm -f $(srcdir)/Lib/test/*.py[co]
907 -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
913 $(RUNSHARED) ./$(BUILDPYTHON) Tools/ssl/multissltests.py --compile-only
920 if test "x$(ENSUREPIP)" != "xno" ; then \
922 upgrade) ensurepip="--upgrade" ;; \
925 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
926 $$ensurepip --root=$(DESTDIR)/ ; \
931 if test "x$(ENSUREPIP)" != "xno" ; then \
933 upgrade) ensurepip="--altinstall --upgrade --no-default-pip" ;; \
934 install|*) ensurepip="--altinstall --no-default-pip" ;; \
936 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
937 $$ensurepip --root=$(DESTDIR)/ ; \
940 commoninstall: check-clean-src @FRAMEWORKALTINSTALLFIRST@ \
950 if test $$i != X; then \
959 if test ! -d $(DESTDIR)$$i; then \
961 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
968 # $(PYTHON) -> python2 -> python$(VERSION))
971 if test ! -d $(DESTDIR)$(LIBPC); then \
973 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
975 -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
976 then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
979 (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
980 -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
981 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
982 -rm -f $(DESTDIR)$(BINDIR)/python2-config
983 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
984 -rm -f $(DESTDIR)$(BINDIR)/python-config
985 (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
986 -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
987 -rm -f $(DESTDIR)$(LIBPC)/python2.pc
988 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)
989 -rm -f $(DESTDIR)$(LIBPC)/python.pc
990 (cd $(DESTDIR)$(LIBPC); $(LN) -s python2.pc python.pc)
997 if test ! -d $(DESTDIR)$$i; then \
999 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1003 $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE)
1004 if test -f $(LDLIBRARY); then \
1005 if test -n "$(DLLLIBRARY)" ; then \
1009 if test $(LDLIBRARY) != $(INSTSONAME); then \
1010 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \
1020 if test ! -d $(DESTDIR)$$i; then \
1022 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1026 $(INSTALL_DATA) $(srcdir)/Misc/python.man \
1027 $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
1031 -rm -f $(DESTDIR)$(MANDIR)/man1/python2.1
1032 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python2.1)
1033 -rm -f $(DESTDIR)$(MANDIR)/man1/python.1
1034 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python2.1 python.1)
1042 PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \
1043 plat-mac/lib-scriptpackages/_builtinSuites \
1044 plat-mac/lib-scriptpackages/CodeWarrior \
1045 plat-mac/lib-scriptpackages/Explorer \
1046 plat-mac/lib-scriptpackages/Finder \
1047 plat-mac/lib-scriptpackages/Netscape \
1048 plat-mac/lib-scriptpackages/StdSuites \
1049 plat-mac/lib-scriptpackages/SystemEvents \
1050 plat-mac/lib-scriptpackages/Terminal
1051 PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
1052 LIBSUBDIRS= lib-tk lib-tk/test lib-tk/test/test_tkinter \
1053 lib-tk/test/test_ttk site-packages test test/audiodata test/capath \
1054 test/data test/cjkencodings test/decimaltestdata test/xmltestdata \
1055 test/imghdrdata \
1056 test/subprocessdata \
1057 test/support \
1058 test/tracedmodules \
1060 email email/mime email/test email/test/data \
1063 sqlite3 sqlite3/test \
1064 logging bsddb bsddb/test csv importlib wsgiref \
1067 ctypes ctypes/test ctypes/macholib \
1071 unittest unittest/test \
1072 lib-old \
1077 if test ! -d $(DESTDIR)$$i; then \
1079 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1086 if test ! -d $$a; then continue; else true; fi; \
1088 if test ! -d $(DESTDIR)$$b; then \
1090 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
1094 …r)/Lib/*.py `cat pybuilddir.txt`/_sysconfigdata.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \
1096 if test -x $$i; then \
1107 if test ! -d $$a; then continue; else true; fi; \
1108 if test `ls $$a | wc -l` -lt 1; then continue; fi; \
1118 if test -d $$i; then continue; fi; \
1119 if test -x $$i; then \
1130 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
1135 $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
1136 -d $(LIBDEST) -f \
1137 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1140 $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
1141 -d $(LIBDEST) -f \
1142 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
1144 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1145 $(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
1146 -d $(LIBDEST)/site-packages -f \
1147 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1148 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1149 $(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
1150 -d $(LIBDEST)/site-packages -f \
1151 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1152 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1153 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
1154 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1155 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
1160 cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
1165 if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
1174 python-config: $(srcdir)/Misc/python-config.in
1175 # Substitution happens here, as the completely-expanded BINDIR
1177 …sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-c…
1184 if test ! -d $(DESTDIR)$$i; then \
1186 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1204 libainstall: @DEF_MAKE_RULE@ python-config
1207 if test ! -d $(DESTDIR)$$i; then \
1209 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1213 @if test -d $(LIBRARY); then :; else \
1214 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1215 if test "$(SO)" = .dll; then \
1222 echo Skip install of $(LIBRARY) - use make frameworkinstall; \
1226 $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o
1232 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1234 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1235 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
1236 rm python-config
1237 @if [ -s Modules/python.exp -a \
1240 $(INSTALL_DATA) Modules/python.exp \
1241 $(DESTDIR)$(LIBPL)/python.exp; \
1242 echo; echo "$(LIBPL)/python.exp"; \
1249 echo; echo "See Misc/AIX-NOTES for details."; \
1254 $(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README; \
1260 echo; echo "See Misc/BeOS-NOTES for details."; \
1268 --prefix=$(prefix) \
1269 --install-scripts=$(BINDIR) \
1270 --install-platlib=$(DESTSHARED) \
1271 --root=$(DESTDIR)/
1272 -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata.py*
1275 # framework-based Python. frameworkinstall installs everything, the
1280 # This target is here for backward compatibility, previous versions of Python
1284 # On install, we re-make the framework
1286 # --enable-framework. If --enable-framework has been specified then we have
1293 @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
1294 echo Not configured with --enable-framework; \
1299 if test ! -d $(DESTDIR)$$i; then \
1301 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1305 $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers
1306 …sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print platform.python_versi…
1307 $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
1308 …$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAM…
1309 $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
1310 $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
1315 # install (which includes python-config) happy.
1317 …ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(V…
1318 …ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(V…
1319 ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
1326 # This install the unix python and pythonw tools in /usr/local/bin
1342 --prefix=$(prefix) \
1343 --install-scripts=$(BINDIR) \
1344 --root=$(DESTDIR)/
1349 $(MAKE) -f Makefile.pre Makefile
1359 $(CC) -c $(PY_CFLAGS) -o $@ $<
1363 ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
1368 $(SHELL) config.status --recheck
1381 ctags -w $(srcdir)/Include/*.h
1382 for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
1383 ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
1384 LC_ALL=C sort -o tags tags
1390 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
1392 # Sanitation targets -- clean leaves libraries, executables and tags
1395 find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
1398 find . -name '*.[oa]' -exec rm -f {} ';'
1399 find . -name '*.s[ol]' -exec rm -f {} ';'
1400 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
1401 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
1402 find build -name 'fficonfig.py' -exec rm -f {} ';' || true
1403 -rm -f Lib/lib2to3/*Grammar*.pickle
1404 -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
1406 profile-removal:
1407 find . -name '*.gc??' -exec rm -f {} ';'
1408 find . -name '*.profclang?' -exec rm -f {} ';'
1409 find . -name '*.dyn' -exec rm -f {} ';'
1411 clobber: clean profile-removal
1412 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
1415 -rm -rf build platform
1416 -rm -rf $(PYTHONFRAMEWORKDIR)
1420 # Keep configure and Python-ast.[ch], it's possible they can't be generated
1422 for file in Lib/test/data/* ; do \
1423 if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \
1425 -rm -f core Makefile Makefile.pre config.status \
1427 Modules/ld_so_aix Modules/python.exp Misc/python.pc
1428 -rm -f python*-gdb.py
1429 -rm -f pybuilddir.txt
1434 LC_ALL=C; find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
1435 -o -name '[@,#]*' -o -name '*.old' \
1436 -o -name '*.orig' -o -name '*.rej' \
1437 -o -name '*.bak' ')' \
1438 -exec rm -f {} ';'
1442 nm -p $(LIBRARY) | \
1443 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
1447 find $(SUBDIRS) $(SUBDIRSTOO) -type d \
1448 -o -name '*.[chs]' \
1449 -o -name '*.py' \
1450 -o -name '*.doc' \
1451 -o -name '*.sty' \
1452 -o -name '*.bib' \
1453 -o -name '*.dat' \
1454 -o -name '*.el' \
1455 -o -name '*.fd' \
1456 -o -name '*.in' \
1457 -o -name '*.tex' \
1458 -o -name '*,[vpt]' \
1459 -o -name 'Setup' \
1460 -o -name 'Setup.*' \
1461 -o -name README \
1462 -o -name Makefile \
1463 -o -name ChangeLog \
1464 -o -name Repository \
1465 -o -name Root \
1466 -o -name Entries \
1467 -o -name Tag \
1468 -o -name tags \
1469 -o -name TAGS \
1470 -o -name .cvsignore \
1471 -o -name MANIFEST \
1472 -o -print
1480 Python/thread.o: @THREADHEADERS@
1483 .PHONY: all build_all sharedmods check-clean-src oldsharedmods test quicktest memtest