summaryrefslogtreecommitdiff
path: root/databases/postgresql81/files/GNUmakefile.libpq
blob: 9b9a560f0b78c7873ea5be93a1a409afddc8d20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: GNUmakefile.libpq,v 1.1.1.1 2006/03/20 14:45:49 uebayasi 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: ;