summaryrefslogtreecommitdiff
path: root/databases/postgresql80/files/GNUmakefile.libpgtcl
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql80/files/GNUmakefile.libpgtcl')
-rw-r--r--databases/postgresql80/files/GNUmakefile.libpgtcl20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/postgresql80/files/GNUmakefile.libpgtcl b/databases/postgresql80/files/GNUmakefile.libpgtcl
new file mode 100644
index 00000000000..b1ea47d2775
--- /dev/null
+++ b/databases/postgresql80/files/GNUmakefile.libpgtcl
@@ -0,0 +1,20 @@
+# $NetBSD: GNUmakefile.libpgtcl,v 1.1.1.1 2005/02/06 12:32:05 jdolecek Exp $
+#
+# This GNUmakefile overrides the `all' target of $(libpgtcl_srcdir)/Makefile
+# to be empty if INSTALLED_LIBPGTCL is defined. This handles the submake
+# targets sprinkled throughout the PostgreSQL Makefiles that execute
+#
+# @$(MAKE) -C $(libpgtcl_builddir) all
+#
+# to ensure that the libpgtcl libraries are built first. If INSTALLED_LIBPGTCL
+# is defined, then have the `all' target simple return success.
+
+ifdef INSTALLED_LIBPGTCL
+all:
+ @test -f libpgtcl.a || touch libpgtcl.a
+endif
+
+%: force
+ @$(MAKE) -f Makefile $@
+
+force: ;