Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf9926c

Browse files
committed
Change EXEEXT back to EXE in the Makefile. Other tools may depend on the name.
The name in configure is still EXEEXT because that's what autoconf calls it. Also, replace a few occurrences of "python" with "$(PYTHON)".
1 parent 9767e76 commit cf9926c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Makefile.pre.in

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ BLDSHARED= @BLDSHARED@
9797
DESTSHARED= $(BINLIBDEST)/lib-dynload
9898

9999
# Executable suffix (.exe on Windows and Mac OS X)
100-
EXEEXT= @EXEEXT@
100+
EXE= @EXEEXT@
101101

102102
# Modes for directories, executables and data files created by the
103103
# install process. Default to user-only-writable for all file types.
@@ -139,7 +139,7 @@ LIBOBJS= @LIBOBJS@
139139
DLINCLDIR= @DLINCLDIR@
140140
DYNLOADFILE= @DYNLOADFILE@
141141

142-
PYTHON= python$(EXEEXT)
142+
PYTHON= python$(EXE)
143143

144144
# === Definitions added by makesetup ===
145145

@@ -164,7 +164,7 @@ GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
164164

165165
##########################################################################
166166
# Parser
167-
PGEN= Parser/pgen$(EXEEXT)
167+
PGEN= Parser/pgen$(EXE)
168168

169169
POBJS= \
170170
Parser/acceler.o \
@@ -507,7 +507,7 @@ bininstall: altbininstall
507507
then rm -f $(BINDIR)/$(PYTHON); \
508508
else true; \
509509
fi
510-
(cd $(BINDIR); $(LN) python$(VERSION)$(EXEEXT) python$(EXEEXT))
510+
(cd $(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
511511

512512
# Install the interpreter with $(VERSION) affixed
513513
# This goes into $(exec_prefix)
@@ -520,7 +520,7 @@ altbininstall: $(PYTHON)
520520
else true; \
521521
fi; \
522522
done
523-
$(INSTALL_PROGRAM) $(PYTHON) $(BINDIR)/python$(VERSION)$(EXEEXT)
523+
$(INSTALL_PROGRAM) $(PYTHON) $(BINDIR)/python$(VERSION)$(EXE)
524524
if test -f libpython$(VERSION).so; then \
525525
$(INSTALL_DATA) libpython$(VERSION).so $(LIBDIR); \
526526
else true; \
@@ -549,7 +549,7 @@ MACHDEPS= $(PLATDIR)
549549
XMLLIBSUBDIRS= xml xml/dom xml/parsers xml/sax
550550
LIBSUBDIRS= lib-old lib-tk site-packages test test/output encodings \
551551
distutils distutils/command $(XMLLIBSUBDIRS) curses $(MACHDEPS)
552-
libinstall: python $(srcdir)/Lib/$(PLATDIR)
552+
libinstall: $(PYTHON) $(srcdir)/Lib/$(PLATDIR)
553553
@for i in $(SCRIPTDIR) $(LIBDEST); \
554554
do \
555555
if test ! -d $$i; then \
@@ -615,7 +615,7 @@ $(srcdir)/Lib/$(PLATDIR):
615615
cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
616616
export PATH; PATH="`pwd`:$$PATH"; \
617617
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
618-
export EXEEXT; EXEEXT="$(EXEEXT)"; \
618+
export EXE; EXE="$(EXE)"; \
619619
cd $(srcdir)/Lib/$(PLATDIR); ./regen
620620

621621
# Install the include files
@@ -692,7 +692,7 @@ libainstall: all
692692
# Install the dynamically loadable modules
693693
# This goes into $(exec_prefix)
694694
sharedinstall:
695-
PYTHONPATH= ./python$(EXEEXT) $(srcdir)/setup.py install \
695+
PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py install \
696696
--install-platlib=$(DESTSHARED)
697697

698698
# Build the toplevel Makefile

0 commit comments

Comments
 (0)