62001fd985
from maintainer
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
$OpenBSD: patch-Makefile_pre_in,v 1.2 2001/09/19 01:05:18 shell Exp $
|
|
--- Makefile.pre.in.orig Tue Apr 3 09:23:30 2001
|
|
+++ Makefile.pre.in Mon Jun 18 22:14:19 2001
|
|
@@ -130,7 +130,7 @@
|
|
# Install Stuff
|
|
INSTALL = @INSTALL@
|
|
PY_LIB_DIR = @PYTHON_LIBRARY_DIR@
|
|
-PY_MOD_DIR = @PYTHON_MODULE_DIR@
|
|
+PY_MOD_DIR = $(prefix)/lib/python@PYTHON_VERSION@/lib-dynload/
|
|
|
|
# === Fixed definitions ===
|
|
|
|
@@ -155,7 +155,7 @@
|
|
# === Fixed rules ===
|
|
|
|
# Default target. This builds shared libraries.
|
|
-default: sharedmods
|
|
+all: sharedmods
|
|
|
|
# Build shared libraries from our extension modules
|
|
sharedmods: $(SHAREDMODS)
|
|
@@ -172,8 +172,9 @@
|
|
@echo 'Installing shared modules...'
|
|
@if [ -n "$(SHAREDMODS)" ]; then \
|
|
for mod in $(SHAREDMODS); do \
|
|
- echo " install -m 555 $$mod $(PY_MOD_DIR)"; \
|
|
- $(INSTALL) @INSTALLOPTS@ -m 555 $$mod $(PY_MOD_DIR); \
|
|
+ echo " install -m 555 $$mod $(DESTDIR)/$(PY_MOD_DIR)"; \
|
|
+ mkdir -p $(DESTDIR)$(PY_MOD_DIR); \
|
|
+ $(INSTALL) @INSTALLOPTS@ -m 555 $$mod $(DESTDIR)$(PY_MOD_DIR); \
|
|
done; \
|
|
fi
|
|
|