This is a 2 line patch to src/interfaces/perl5/GNUMakefile that fixes
authorBruce Momjian
Tue, 27 Aug 2002 03:57:11 +0000 (03:57 +0000)
committerBruce Momjian
Tue, 27 Aug 2002 03:57:11 +0000 (03:57 +0000)
the 'override CPPFLAGS' to include the source directory during compile,
and makes the install target look in the proper place for the man page.

Changes are only required when building outside the source directory.

J. R. Nield

src/interfaces/perl5/GNUmakefile

index 5bde2c05103edd784f965c5ea43bcdcbf387e041..0d85996c03ee49d0bc14c225e10a6f8da37ea93b 100644 (file)
@@ -1,4 +1,4 @@
-# $Header: /cvsroot/pgsql/src/interfaces/perl5/Attic/GNUmakefile,v 1.8 2002/06/02 21:37:26 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/perl5/Attic/GNUmakefile,v 1.9 2002/08/27 03:57:11 momjian Exp $
 
 subdir = src/interfaces/perl5
 top_builddir = ../../..
@@ -12,7 +12,7 @@ perl_installsitelib   = $(pkglibdir)
 perl_installman3dir    = $(mandir)/man3
 endif
 
-override CPPFLAGS := -I$(libpq_srcdir) -I$(top_srcdir)/src/include $(CPPFLAGS) -I$(perl_archlibexp)/CORE
+override CPPFLAGS := -I$(libpq_srcdir) -I$(top_srcdir)/src/include $(CPPFLAGS) -I$(perl_archlibexp)/CORE -I$(top_srcdir)/$(subdir)
 override CFLAGS += $(CFLAGS_SL)
 override CPPFLAGS += -DXS_VERSION=\"$(shell sed -n "s/\$$.*::VERSION.*=.*'\(.*\)';/\1/p" $(srcdir)/Pg.pm)\"
 
@@ -74,7 +74,7 @@ install: all installdirs
      $(INSTALL_DATA) Pg.bs $(DESTDIR)$(perl_installsitearch)/auto/Pg; \
      $(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(perl_installsitearch)/auto/Pg/Pg$(DLSUFFIX); \
      $(INSTALL_DATA) auto/Pg/autosplit.ix $(DESTDIR)$(perl_installsitearch)/auto/Pg; \
-     $(INSTALL_DATA) $(srcdir)/Pg.$(perl_man3ext) $(DESTDIR)$(perl_installman3dir); \
+     $(INSTALL_DATA) Pg.$(perl_man3ext) $(DESTDIR)$(perl_installman3dir); \
    else \
      $(install-warning-msg); \
    fi