Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10144)

Side by Side Diff: Makefile.pre.in

Issue 16235: Add python-config.sh for use during cross compilation.
Patch Set: Created 7 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « configure.ac ('k') | Misc/python-config.sh.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Top-level Makefile for Python 1 # Top-level Makefile for Python
2 # 2 #
3 # As distributed, this file is called Makefile.pre.in; it is processed 3 # As distributed, this file is called Makefile.pre.in; it is processed
4 # into the real Makefile by running the script ./configure, which 4 # into the real Makefile by running the script ./configure, which
5 # replaces things like @spam@ with values appropriate for your system. 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 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: 7 # time you run the configure script. Ideally, you can do:
8 # 8 #
9 # ./configure 9 # ./configure
10 # make 10 # make
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 export PATH; PATH="`pwd`:$$PATH"; \ 1113 export PATH; PATH="`pwd`:$$PATH"; \
1114 export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \ 1114 export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
1115 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ 1115 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
1116 export EXE; EXE="$(BUILDEXE)"; \ 1116 export EXE; EXE="$(BUILDEXE)"; \
1117 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen 1117 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
1118 1118
1119 python-config: $(srcdir)/Misc/python-config.in 1119 python-config: $(srcdir)/Misc/python-config.in
1120 # Substitution happens here, as the completely-expanded BINDIR 1120 # Substitution happens here, as the completely-expanded BINDIR
1121 # is not available in configure 1121 # is not available in configure
1122 sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Mis c/python-config.in >python-config 1122 sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Mis c/python-config.in >python-config
1123 # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
1124 sed -e "s,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g" < Misc/python-config.sh >p ython-config.sh
1123 1125
1124 # Install the include files 1126 # Install the include files
1125 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) 1127 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
1126 inclinstall: 1128 inclinstall:
1127 @for i in $(INCLDIRSTOMAKE); \ 1129 @for i in $(INCLDIRSTOMAKE); \
1128 do \ 1130 do \
1129 if test ! -d $(DESTDIR)$$i; then \ 1131 if test ! -d $(DESTDIR)$$i; then \
1130 echo "Creating directory $$i"; \ 1132 echo "Creating directory $$i"; \
1131 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1133 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1132 else true; \ 1134 else true; \
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o 1173 $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o
1172 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config. c.in 1174 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config. c.in
1173 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile 1175 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
1174 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup 1176 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
1175 $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local 1177 $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
1176 $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config 1178 $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
1177 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc 1179 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1178 $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makeset up 1180 $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makeset up
1179 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh 1181 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1180 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-c onfig 1182 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-c onfig
1183 $(INSTALL_SCRIPT) python-config.sh $(DESTDIR)$(BINDIR)/python-config.sh
1181 rm python-config 1184 rm python-config
1182 @if [ -s Modules/python.exp -a \ 1185 @if [ -s Modules/python.exp -a \
1183 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \ 1186 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
1184 echo; echo "Installing support files for building shared extensi on modules on AIX:"; \ 1187 echo; echo "Installing support files for building shared extensi on modules on AIX:"; \
1185 $(INSTALL_DATA) Modules/python.exp \ 1188 $(INSTALL_DATA) Modules/python.exp \
1186 $(DESTDIR)$(LIBPL)/python.exp; \ 1189 $(DESTDIR)$(LIBPL)/python.exp; \
1187 echo; echo "$(LIBPL)/python.exp"; \ 1190 echo; echo "$(LIBPL)/python.exp"; \
1188 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \ 1191 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
1189 $(DESTDIR)$(LIBPL)/makexp_aix; \ 1192 $(DESTDIR)$(LIBPL)/makexp_aix; \
1190 echo "$(LIBPL)/makexp_aix"; \ 1193 echo "$(LIBPL)/makexp_aix"; \
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1437 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
1435 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1438 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
1436 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1439 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1437 .PHONY: smelly funny patchcheck touch 1440 .PHONY: smelly funny patchcheck touch
1438 .PHONY: gdbhooks 1441 .PHONY: gdbhooks
1439 1442
1440 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1443 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
1441 # Local Variables: 1444 # Local Variables:
1442 # mode: makefile 1445 # mode: makefile
1443 # End: 1446 # End:
OLDNEW
« no previous file with comments | « configure.ac ('k') | Misc/python-config.sh.in » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+