summaryrefslogtreecommitdiffstats
path: root/Modules/Makefile.pre.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-24 21:14:44 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-24 21:14:44 (GMT)
commitddcb36b5da548df9ef00689d24f100958b9a477e (patch)
tree788fb48c31b02768836f420f28eee17dcbc2b2e6 /Modules/Makefile.pre.in
parent9c8a0c4b1cf3743c1393aa593691c755191e0b6a (diff)
downloadcpython-ddcb36b5da548df9ef00689d24f100958b9a477e.zip
cpython-ddcb36b5da548df9ef00689d24f100958b9a477e.tar.gz
cpython-ddcb36b5da548df9ef00689d24f100958b9a477e.tar.bz2
Use ../install-sh to install files.
Diffstat (limited to 'Modules/Makefile.pre.in')
-rw-r--r--Modules/Makefile.pre.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index 099fbeb..69eb540 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -43,6 +43,11 @@ CCSHARED= @CCSHARED@
LINKFORSHARED= @LINKFORSHARED@
DESTSHARED= $(exec_prefix)/lib/python/$(MACHDEP)
+# Portable install script (configure doesn't always guess right)
+INSTALL= @srcdir@/../install-sh -c
+INSTALL_PROGRAM=${INSTALL}
+INSTALL_DATA= ${INSTALL} -m 644
+
# === Variables that are customizable by hand or by inclusion in Setup ===
LINKCC= $(CC)
@@ -164,10 +169,13 @@ yuvconvert.o: yuvconvert.c
# Rules to build and install all shared modules
sharedmods: $(SHAREDMODS)
sharedinstall: $(DESTSHARED) $(SHAREDMODS)
- -for i in dummy $(SHAREDMODS); do \
- if test -f $$i; then mv $$i $(DESTSHARED)/$$i; fi; done
+ -for i in X $(SHAREDMODS); do \
+ if test $$i != X; \
+ then $(INSTALL_DATA) $$i $(DESTSHARED)/$$i; \
+ fi; \
+ done
$(DESTSHARED):
- mkdir $(DESTSHARED)
+ mkdir $(DESTSHARED); chmod 755 $(DESTSHARED)
# Stuff is appended here by makesetup and make depend