mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some now obsoleted make variables.
This commit is contained in:
@@ -4,20 +4,20 @@
|
||||
#
|
||||
# Written by Peter Eisentraut <peter_e@gmx.net>
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.1 2000/06/28 18:30:07 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.2 2000/08/31 16:12:01 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
subdir = src/interfaces/python
|
||||
top_builddir = ../../..
|
||||
include ../../Makefile.global
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
all: Makefile pgmodule.c libpq-all
|
||||
$(MAKE) -f Makefile
|
||||
|
||||
.PHONY: libpq-all
|
||||
libpq-all:
|
||||
$(MAKE) -C $(top_builddir)/src/interfaces/libpq all
|
||||
$(MAKE) -C $(libpq_builddir) all
|
||||
|
||||
Makefile: Setup.in Makefile.pre.in
|
||||
$(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir)
|
||||
@@ -26,10 +26,11 @@ Makefile.pre.in: $(python_extmakefile)
|
||||
cp $< $@
|
||||
|
||||
Setup.in: Setup.in.raw
|
||||
sed -e "s%__LIBPQ__%${top_srcdir}/src/interfaces/libpq%g" \
|
||||
-e "s%__EXTRA_LIBS__%${LIBS}%g" \
|
||||
-e "s%__INCLUDES__%${top_srcdir}/src/include%g" \
|
||||
< $< > $@
|
||||
sed -e 's,@libpq_srcdir@,$(libpq_srcdir),g' \
|
||||
-e 's,@libpq_builddir@,$(libpq_builddir),g' \
|
||||
-e 's,@EXTRA_LIBS@,$(LIBS),g' \
|
||||
-e 's,@pg_includedir@,$(top_srcdir)/src/include,g' \
|
||||
$< > $@
|
||||
|
||||
install: all
|
||||
@echo "Installing Python module"
|
||||
|
||||
Reference in New Issue
Block a user