@ -1,4 +1,4 @@
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.11 2001/08/24 14:07:50 petere Exp $
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.12 2001/12/03 12:39:44 darcy Exp $
subdir = src/interfaces/python
subdir = src/interfaces/python
top_builddir = ../../..
top_builddir = ../../..
@ -19,10 +19,23 @@ include $(top_srcdir)/src/Makefile.shlib
override CPPFLAGS : = -I $( libpq_srcdir ) $( CPPFLAGS ) $( python_includespec )
override CPPFLAGS : = -I $( libpq_srcdir ) $( CPPFLAGS ) $( python_includespec )
all : all -lib
PY_SCRIPTS = pg.py pgdb.py
i f e q ( $( with_python_compile ) , y e s )
PY_COMPILED_SCRIPTS = $( PY_SCRIPTS:%.py= %.pyc) $( PY_SCRIPTS:%.py= %.pyo)
e l s e
PY_COMPILED_SCRIPTS =
e n d i f
all : all -lib $( PY_COMPILED_SCRIPTS )
all-lib : libpq -all
all-lib : libpq -all
%.pyc : %.py
$( PYTHON) -c " import py_compile; py_compile.compile(\" $<\") "
%.pyo : %.py
$( PYTHON) -O -c " import py_compile; py_compile.compile(\" $<\") "
.PHONY : libpq -all
.PHONY : libpq -all
libpq-all :
libpq-all :
$( MAKE) -C $( libpq_builddir) all
$( MAKE) -C $( libpq_builddir) all
@ -38,11 +51,10 @@ install: all installdirs
echo " $( INSTALL_SHLIB) $( shlib) $( DESTDIR) $( python_moduleexecdir) /_pgmodule $( DLSUFFIX) " ; \
echo " $( INSTALL_SHLIB) $( shlib) $( DESTDIR) $( python_moduleexecdir) /_pgmodule $( DLSUFFIX) " ; \
$( INSTALL_SHLIB) $( shlib) $( DESTDIR) $( python_moduleexecdir) /_pgmodule$( DLSUFFIX) ; \
$( INSTALL_SHLIB) $( shlib) $( DESTDIR) $( python_moduleexecdir) /_pgmodule$( DLSUFFIX) ; \
\
\
echo " $( INSTALL_DATA) $( srcdir) /pg.py $( DESTDIR) $( python_moduledir) /pg.py " ; \
for i in $( PY_SCRIPTS) $( PY_COMPILED_SCRIPTS) ; do \
$( INSTALL_DATA) $( srcdir) /pg.py $( DESTDIR) $( python_moduledir) /pg.py; \
echo $( INSTALL_DATA) $$ i $( python_moduledir) ; \
\
$( INSTALL_DATA) $$ i $( python_moduledir) ; \
echo " $( INSTALL_DATA) $( srcdir) /pgdb.py $( DESTDIR) $( python_moduledir) /pgdb.py " ; \
done \
$( INSTALL_DATA) $( srcdir) /pgdb.py $( DESTDIR) $( python_moduledir) /pgdb.py; \
else \
else \
$( install-warning-msg) ; \
$( install-warning-msg) ; \
fi
fi