summaryrefslogtreecommitdiff
path: root/databases/py-PyGreSQL/files/patch-src::interfaces::python::GNUmakefile
blob: 6b74261b7c1fda67229ac3669f98f11042eefa99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- src/interfaces/python/GNUmakefile.orig	Thu Dec 13 20:39:04 2001
+++ src/interfaces/python/GNUmakefile	Wed Oct 23 15:52:18 2002
@@ -34,9 +34,9 @@
 echo "*** become the appropriate user, and do '$(MAKE) install'."; }
 
 install: all installdirs
-	@if test -w $(DESTDIR)$(python_moduleexecdir) && test -w $(DESTDIR)$(python_moduledir); then \
-	  echo "$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX)"; \
-	  $(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX); \
+	@if test -w $(DESTDIR)$(python_moduledir); then \
+	  echo "$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduledir)/_pgmodule$(DLSUFFIX)"; \
+	  $(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduledir)/_pgmodule$(DLSUFFIX); \
 	\
 	  echo "$(INSTALL_DATA) $(srcdir)/pg.py $(DESTDIR)$(python_moduledir)/pg.py"; \
 	  $(INSTALL_DATA) $(srcdir)/pg.py $(DESTDIR)$(python_moduledir)/pg.py; \
@@ -48,10 +48,10 @@
 	fi
 
 installdirs:
-	$(mkinstalldirs) $(DESTDIR)$(python_moduleexecdir) $(DESTDIR)$(python_moduledir)
+	$(mkinstalldirs) $(DESTDIR)$(python_moduledir)
 
 uninstall:
-	rm -f $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX) \
+	rm -f $(DESTDIR)$(python_moduledir)/_pgmodule$(DLSUFFIX) \
 	      $(DESTDIR)$(python_moduledir)/pg.py \
 	      $(DESTDIR)$(python_moduledir)/pgdb.py