summaryrefslogtreecommitdiff
path: root/databases/postgresql95/files/GNUmakefile.libpq
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql95/files/GNUmakefile.libpq')
-rw-r--r--databases/postgresql95/files/GNUmakefile.libpq20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/postgresql95/files/GNUmakefile.libpq b/databases/postgresql95/files/GNUmakefile.libpq
new file mode 100644
index 00000000000..14c2b95343e
--- /dev/null
+++ b/databases/postgresql95/files/GNUmakefile.libpq
@@ -0,0 +1,20 @@
+# $NetBSD: GNUmakefile.libpq,v 1.1 2016/02/25 21:37:35 tnn Exp $
+#
+# This GNUmakefile overrides the `all' target of $(libpq_srcdir)/Makefile
+# to be empty if INSTALLED_LIBPQ is defined. This handles the submake
+# targets sprinkled throughout the PostgreSQL Makefiles that execute
+#
+# @$(MAKE) -C $(libpq_builddir) all
+#
+# to ensure that the libpq libraries are built first. If INSTALLED_LIBPQ
+# is defined, then have the `all' target simple return success.
+
+ifdef INSTALLED_LIBPQ
+all:
+ @test -f libpq.a || touch libpq.a
+endif
+
+%: force
+ @$(MAKE) -f Makefile $@
+
+force: ;