Index: GNUmakefile =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/python/GNUmakefile,v retrieving revision 1.7 diff -u -p -r1.7 GNUmakefile --- GNUmakefile 2001/05/12 17:49:32 1.7 +++ GNUmakefile 2001/05/24 15:30:27 @@ -32,10 +32,10 @@ Setup.in: Setup.in.raw -e 's%@INCLUDES@%$(filter -I%, $(CPPFLAGS))%g' \ $< > $@ -install: all +install: all installdirs @echo "Installing Python module" - @if ( $(INSTALL_DATA) pg.py $(python_moduledir) && \ - $(MAKE) -f Makefile install ); then : ; else \ + @if ( $(INSTALL_DATA) pg.py $(DESTDIR)$(python_moduledir) && \ + $(MAKE) -f Makefile prefix=$(DESTDIR)$(prefix) install ); then :; else \ echo "*****" ;\ echo "* Skipping the installation of the Python interface module for lack"; \ echo "* of permissions. To install it, change to the directory"; \ @@ -43,6 +43,9 @@ install: all echo "* user, and do \`$(MAKE) install'."; \ echo "*****"; \ fi + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(python_moduledir) uninstall: @echo "*****"; \