1
- # $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.12 2001/12/03 12 :39:44 darcy Exp $
1
+ # $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.13 2001/12/13 18 :39:04 petere Exp $
2
2
3
3
subdir = src/interfaces/python
4
4
top_builddir = ../../..
@@ -19,23 +19,10 @@ include $(top_srcdir)/src/Makefile.shlib
19
19
20
20
override CPPFLAGS := -I$(libpq_srcdir ) $(CPPFLAGS ) $(python_includespec )
21
21
22
- PY_SCRIPTS = pg.py pgdb.py
23
- ifeq ($(with_python_compile ) , yes)
24
- PY_COMPILED_SCRIPTS =$(PY_SCRIPTS:%.py=%.pyc ) $(PY_SCRIPTS:%.py=%.pyo )
25
- else
26
- PY_COMPILED_SCRIPTS =
27
- endif
28
-
29
- all : all-lib$(PY_COMPILED_SCRIPTS )
22
+ all : all-lib
30
23
31
24
all-lib : libpq-all
32
25
33
- % .pyc :% .py
34
- $(PYTHON ) -c" import py_compile; py_compile.compile(\" $<\" )"
35
-
36
- % .pyo :% .py
37
- $(PYTHON ) -O -c" import py_compile; py_compile.compile(\" $<\" )"
38
-
39
26
.PHONY : libpq-all
40
27
libpq-all :
41
28
$(MAKE ) -C$(libpq_builddir ) all
@@ -51,10 +38,11 @@ install: all installdirs
51
38
echo " $( INSTALL_SHLIB) $( shlib) $( DESTDIR) $( python_moduleexecdir) /_pgmodule$( DLSUFFIX) " ; \
52
39
$(INSTALL_SHLIB ) $(shlib ) $(DESTDIR )$(python_moduleexecdir ) /_pgmodule$(DLSUFFIX ) ; \
53
40
\
54
- for i in $( PY_SCRIPTS) $( PY_COMPILED_SCRIPTS) ; do \
55
- echo $(INSTALL_DATA ) $$ i$(python_moduledir ) ; \
56
- $(INSTALL_DATA ) $$ i$(python_moduledir ) ; \
57
- done \
41
+ echo " $( INSTALL_DATA) $( srcdir) /pg.py$( DESTDIR) $( python_moduledir) /pg.py" ; \
42
+ $(INSTALL_DATA ) $(srcdir ) /pg.py$(DESTDIR )$(python_moduledir ) /pg.py; \
43
+ \
44
+ echo " $( INSTALL_DATA) $( srcdir) /pgdb.py$( DESTDIR) $( python_moduledir) /pgdb.py" ; \
45
+ $(INSTALL_DATA ) $(srcdir ) /pgdb.py$(DESTDIR )$(python_moduledir ) /pgdb.py; \
58
46
else \
59
47
$(install-warning-msg ) ; \
60
48
fi