aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-06-28 18:30:16 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-06-28 18:30:16 +0000
commit44f64dd3eac840866d884269c8011b22d416bf3c (patch)
treed4be0830d9d93fc2d66fc0281743f2e7a9cd46f5 /src/interfaces/python
parent5ac1eac2a6355b090d074489f4f11b5b844c3274 (diff)
downloadpostgresql-44f64dd3eac840866d884269c8011b22d416bf3c.tar.gz
postgresql-44f64dd3eac840866d884269c8011b22d416bf3c.zip
Makefile cleanup for interface tree. Now essentially with all the
standard targets and behaviour. Replaced Makefile.in's with Makefile's and declared the respective variables in Makefile.global. maintainer-clean target now available at top level, although it does not work in the backend tree yet. Cleanup pass over Makefile.shlib, renamed some targets and variables. The shared library symlink tests are now done by make, not the shell. ecpg: Remove one warning in sloppy flex output. PL/Perl and Perl interface: the MakeMaker documentation is confusing, the realclean target *does* "delete derived files", but it also uninstalls them. Don't use that. The submake targets in the various bin directories that update libpq should `make all', not `make libpq.a'. That is a) unportable, and b) doesn't build the shared library.
Diffstat (limited to 'src/interfaces/python')
-rw-r--r--src/interfaces/python/GNUmakefile (renamed from src/interfaces/python/GNUmakefile.in)41
1 files changed, 12 insertions, 29 deletions
diff --git a/src/interfaces/python/GNUmakefile.in b/src/interfaces/python/GNUmakefile
index 2dd40954e3d..1917c75c49e 100644
--- a/src/interfaces/python/GNUmakefile.in
+++ b/src/interfaces/python/GNUmakefile
@@ -1,38 +1,21 @@
#-------------------------------------------------------------------
#
-# Makefile for src/interfaces/python, a.k.a. "PyGreSQL"
+# GNUmakefile for src/interfaces/python, a.k.a. "PyGreSQL"
#
# Written by Peter Eisentraut <peter_e@gmx.net>
#
-# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile.in,v 1.1 2000/06/10 18:02:00 petere Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.1 2000/06/28 18:30:07 petere Exp $
#
#-------------------------------------------------------------------
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-top_srcdir = @top_srcdir@
+subdir = src/interfaces/python
top_builddir = ../../..
-
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-libdir = @libdir@
-includedir = @includedir@
-
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-
-LIBS = @LIBS@
-
-PYTHON = @PYTHON@
-python_extmakefile = @python_extmakefile@
-python_moduledir = @python_moduledir@
-
+include ../../Makefile.global
all: Makefile pgmodule.c libpq-all
$(MAKE) -f Makefile
+.PHONY: libpq-all
libpq-all:
$(MAKE) -C $(top_builddir)/src/interfaces/libpq all
@@ -60,15 +43,15 @@ install: all
echo "*****"; \
fi
+uninstall:
+ @echo "*****"; \
+ echo "* Unfortunately, the Python interface module cannot be uninstalled"; \
+ echo "* automatically. To do it yourself, look in or near the directory"; \
+ echo "* \`$(python_moduledir)' for files \`pg.py' and \`_pgmodule$(DLSUFFIX)'."; \
+ echo "*****"
# Python sometimes has a different idea what exactly "clean" is.
-clean:
+clean distclean maintainer-clean:
-[ -f Makefile ] && $(MAKE) -f Makefile clobber
rm -f Makefile.pre.in Makefile Setup Setup.in
-
-distclean maintainer-clean: clean
- rm -f GNUmakefile
-
-
-.PHONY: all libpq-all install clean distclean maintainer-clean