mirror of https://github.com/python/cpython
Added version number to destination.
Forget about the trick to create directories through dependencies -- it's impossible to get it right in the light of parallellizing Make implementations and the inability to specify dependencies between directories (because creating the subdirectory modifies the parent).
This commit is contained in:
parent
a63d9f4d9f
commit
4daf6adfe1
|
@ -6,6 +6,9 @@
|
||||||
# brought up to date by running "make Makefile". (The makesetup also
|
# brought up to date by running "make Makefile". (The makesetup also
|
||||||
# creates config.c from config.c.in in the source directory.)
|
# creates config.c from config.c.in in the source directory.)
|
||||||
|
|
||||||
|
# Interpreter version number, for library destination pathnames
|
||||||
|
VERSION= 1.4
|
||||||
|
|
||||||
# === Variables set by makesetup ===
|
# === Variables set by makesetup ===
|
||||||
|
|
||||||
MODOBJS= _MODOBJS_
|
MODOBJS= _MODOBJS_
|
||||||
|
@ -41,7 +44,8 @@ SO= @SO@
|
||||||
LDSHARED= @LDSHARED@
|
LDSHARED= @LDSHARED@
|
||||||
CCSHARED= @CCSHARED@
|
CCSHARED= @CCSHARED@
|
||||||
LINKFORSHARED= @LINKFORSHARED@
|
LINKFORSHARED= @LINKFORSHARED@
|
||||||
DESTSHARED= $(exec_prefix)/lib/python/$(MACHDEP)
|
BINLIBDEST= $(exec_prefix)/lib/python$(VERSION)
|
||||||
|
DESTSHARED= $(BINLIBDEST)/$(MACHDEP)
|
||||||
|
|
||||||
# Portable install script (configure doesn't always guess right)
|
# Portable install script (configure doesn't always guess right)
|
||||||
INSTALL= @srcdir@/../install-sh -c
|
INSTALL= @srcdir@/../install-sh -c
|
||||||
|
@ -193,19 +197,17 @@ asharedinstall: $(DESTSHARED) $(ASHAREDMODULE)$(SO)
|
||||||
echodestshared: $(DESTSHARED)
|
echodestshared: $(DESTSHARED)
|
||||||
echo $(DESTSHARED)
|
echo $(DESTSHARED)
|
||||||
|
|
||||||
DIRMODE=755
|
DESTDIRS= $(exec_prefix) $(exec_prefix)/lib $(BINLIBDEST) $(DESTSHARED)
|
||||||
|
|
||||||
$(DESTSHARED): $(exec_prefix)/lib/python $(exec_prefix)/lib $(exec_prefix)
|
$(DESTSHARED):
|
||||||
mkdir $(DESTSHARED); chmod $(DIRMODE) $(DESTSHARED)
|
@for i in $(DESTDIRS); \
|
||||||
|
do \
|
||||||
$(exec_prefix)/lib/python:
|
if test ! -d $$i; then \
|
||||||
mkdir $(exec_prefix)/lib/python
|
echo "Creating directory $$i"; \
|
||||||
chmod $(DIRMODE) $(exec_prefix)/lib/python
|
mkdir $$i; \
|
||||||
|
chmod 755 $$i; \
|
||||||
$(exec_prefix)/lib:
|
else true; \
|
||||||
mkdir $(exec_prefix)/lib; chmod $(DIRMODE) $(exec_prefix)/lib
|
fi; \
|
||||||
|
done
|
||||||
$(exec_prefix):
|
|
||||||
mkdir $(exec_prefix); chmod $(DIRMODE) $(exec_prefix)
|
|
||||||
|
|
||||||
# Stuff is appended here by makesetup and make depend
|
# Stuff is appended here by makesetup and make depend
|
||||||
|
|
Loading…
Reference in New Issue