From: Christoph Berg Date: Tue, 2 Feb 2016 17:55:04 +0000 (+0100) Subject: Use pg_config to determine include location X-Git-Tag: REL9_5_0~2 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=9eb845b233662933053b4a8cade6058606f2d942;p=pg_filedump.git Use pg_config to determine include location This seems to be the better default over hardcoding a random filesystem location. --- diff --git a/Makefile b/Makefile index c64dfbf..675e68c 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ CFLAGS=-g -O -Wall -Wmissing-prototypes -Wmissing-declarations # If working with a PG source directory, point PGSQL_INCLUDE_DIR to its # src/include subdirectory. If working with an installed tree, point to # the server include subdirectory, eg /usr/local/include/postgresql/server -PGSQL_INCLUDE_DIR=../../pgsql/src/include +PG_CONFIG=pg_config +PGSQL_INCLUDE_DIR=$(shell $(PG_CONFIG) --includedir-server) DISTFILES= README.pg_filedump Makefile Makefile.contrib \