Skip to content

Commit 005f12f

Browse files
authored
Check extension before copy
1 parent 88ef485 commit 005f12f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: Makefile.pre.in

+4-1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ EXPORTSFROM= @EXPORTSFROM@
176176
# Executable suffix (.exe on Windows and Mac OS X)
177177
EXE= @EXEEXT@
178178
BUILDEXE= @BUILDEXEEXT@
179+
WINDOWSEXE=.exe
179180

180181
# Short name and location for Mac OS X Python framework
181182
UNIVERSALSDK=@UNIVERSALSDK@
@@ -581,7 +582,9 @@ LIBEXPAT_HEADERS= \
581582
all: @DEF_MAKE_ALL_RULE@
582583
build_all: check-clean-src $(BUILDPYTHON) platform sharedmods \
583584
gdbhooks Programs/_testembed scripts checksharedmods rundsymutil
584-
cp $(BUILDPYTHON) $(BUILDPYTHON3)
585+
@if test "$(BUILDEXE)" = "$(WINDOWSEXE)" ; then \
586+
cp $(BUILDPYTHON) $(BUILDPYTHON3) ; \
587+
fi
585588
build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
586589
python-config checksharedmods
587590

0 commit comments

Comments
 (0)