summaryrefslogtreecommitdiff
path: root/src/interfaces/Makefile.in
blob: 3752b4d51a14289302a722f9fcfb56ebb24cae04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#-------------------------------------------------------------------------
#
# Makefile for src/interfaces
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/interfaces/Attic/Makefile.in,v 1.4 2000/06/20 16:39:54 petere Exp $
#
#-------------------------------------------------------------------------

srcdir = @srcdir@
VPATH = @srcdir@

top_srcdir = @top_srcdir@
top_builddir = ../..
subdir = src/interfaces

USE_TCL = @USE_TCL@
enable_odbc = @enable_odbc@
with_CXX = @with_CXX@
with_perl = @with_perl@
with_python = @with_python@

all install clean dep depend:
	$(MAKE) -C libpq $@
	$(MAKE) -C ecpg $@
ifeq ($(with_CXX), yes)
	$(MAKE) -C libpq++ $@
endif
	$(MAKE) -C libpgeasy $@
ifeq ($(USE_TCL), true)
	$(MAKE) -C libpgtcl $@
endif
ifeq ($(with_perl), yes)
	$(MAKE) -C perl5 $@
endif
ifeq ($(with_python), yes)
	$(MAKE) -C python $@
endif
ifeq ($(enable_odbc), yes)
	$(MAKE) -C odbc $@
endif

distclean maintainer-clean: clean
	-$(MAKE) -C perl5 $@
	-$(MAKE) -C python $@
	-$(MAKE) -C odbc $@
	rm -f Makefile \
	  libpq/Makefile \
	  ecpg/lib/Makefile \
	  ecpg/preproc/Makefile \
	  libpq++/Makefile \
	  libpgeasy/Makefile \
	  libpgtcl/Makefile


.PHONY: all install dep depend clean distclean maintainer-clean


Makefile: Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

$(top_builddir)/config.status: $(top_srcdir)/configure
	cd $(top_builddir) && ./config.status --recheck