~ubuntu-branches/ubuntu/saucy/python2.7/saucy-proposed

« back to all changes in this revision

Viewing changes to Makefile.pre.in

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-05-15 19:15:16 UTC
  • mto: (36.1.23 sid)
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: package-import@ubuntu.com-20130515191516-zmv6to904wemey7s
Tags: upstream-2.7.5
ImportĀ upstreamĀ versionĀ 2.7.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
437
437
                        Modules/python.o \
438
438
                        $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
439
439
 
440
 
platform: $(BUILDPYTHON)
 
440
platform: $(BUILDPYTHON) pybuilddir.txt
441
441
        $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
442
442
 
 
443
# Create build directory and generate the sysconfig build-time data there.
 
444
# pybuilddir.txt contains the name of the build dir and is used for
 
445
# sys.path fixup -- see Modules/getpath.c.
 
446
pybuilddir.txt: $(BUILDPYTHON)
 
447
                $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars
443
448
 
444
449
# Build the shared modules
445
450
# Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
446
451
# -s, --silent or --quiet is always the first char.
447
452
# Under BSD make, MAKEFLAGS might be " -s -v x=y".
448
 
sharedmods: $(BUILDPYTHON)
 
453
sharedmods: $(BUILDPYTHON) pybuilddir.txt
449
454
        @case "$$MAKEFLAGS" in \
450
455
            *\ -s*|s*) quiet="-q";; \
451
456
            *) quiet="";; \
955
960
                else    true; \
956
961
                fi; \
957
962
        done
958
 
        @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \
 
963
        @for i in $(srcdir)/Lib/*.py `cat pybuilddir.txt`/_sysconfigdata.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \
959
964
        do \
960
965
                if test -x $$i; then \
961
966
                        $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \
1133
1138
                --install-scripts=$(BINDIR) \
1134
1139
                --install-platlib=$(DESTSHARED) \
1135
1140
                --root=$(DESTDIR)/
 
1141
        -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata.py*
1136
1142
 
1137
1143
# Here are a couple of targets for MacOSX again, to install a full
1138
1144
# framework-based Python. frameworkinstall installs everything, the
1288
1294
                Modules/Setup Modules/Setup.local Modules/Setup.config \
1289
1295
                Modules/ld_so_aix Modules/python.exp Misc/python.pc
1290
1296
        -rm -f python*-gdb.py
 
1297
        -rm -f pybuilddir.txt
1291
1298
        find $(srcdir) '(' -name '*.fdc' -o -name '*~' \
1292
1299
                           -o -name '[@,#]*' -o -name '*.old' \
1293
1300
                           -o -name '*.orig' -o -name '*.rej' \