|
6 | 6 | # Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
7 | 7 | # Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | #
|
9 |
| -# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.73 2008/04/07 14:15:58 petere Exp $ |
| 9 | +# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.74 2008/05/30 00:04:32 tgl Exp $ |
10 | 10 | #
|
11 | 11 | #-------------------------------------------------------------------------
|
12 | 12 |
|
13 | 13 | subdir = src/test/regress
|
14 | 14 | top_builddir = ../../..
|
15 | 15 | include $(top_builddir)/src/Makefile.global
|
16 | 16 |
|
17 |
| -contribdir = $(top_builddir)/contrib |
18 |
| - |
19 | 17 | # port number for temp-installation test postmaster
|
20 | 18 | TEMP_PORT = 5$(DEF_PGPORT)
|
21 | 19 |
|
@@ -115,20 +113,33 @@ $(remaining_files_build): $(abs_builddir)/%: $(srcdir)/%
|
115 | 113 | endif
|
116 | 114 |
|
117 | 115 |
|
118 |
| -# And finally some extra C modules... |
| 116 | +# Get some extra C modules from contrib/spi... |
| 117 | + |
| 118 | +all: refint$(DLSUFFIX) autoinc$(DLSUFFIX) |
| 119 | + |
| 120 | +refint$(DLSUFFIX): $(top_builddir)/contrib/spi/refint$(DLSUFFIX) |
| 121 | + cp $< $@ |
| 122 | + |
| 123 | +autoinc$(DLSUFFIX): $(top_builddir)/contrib/spi/autoinc$(DLSUFFIX) |
| 124 | + cp $< $@ |
119 | 125 |
|
120 |
| -all: all-spi tablespace-setup |
| 126 | +$(top_builddir)/contrib/spi/refint$(DLSUFFIX): $(top_srcdir)/contrib/spi/refint.c |
| 127 | + $(MAKE) -C $(top_builddir)/contrib/spi refint$(DLSUFFIX) |
| 128 | + |
| 129 | +$(top_builddir)/contrib/spi/autoinc$(DLSUFFIX): $(top_srcdir)/contrib/spi/autoinc.c |
| 130 | + $(MAKE) -C $(top_builddir)/contrib/spi autoinc$(DLSUFFIX) |
121 | 131 |
|
122 |
| -.PHONY: all-spi |
123 |
| -all-spi: |
124 |
| - $(MAKE) -C $(contribdir)/spi refint$(DLSUFFIX) autoinc$(DLSUFFIX) |
125 | 132 |
|
126 | 133 | # Tablespace setup
|
| 134 | + |
| 135 | +all: tablespace-setup |
| 136 | + |
127 | 137 | .PHONY: tablespace-setup
|
128 | 138 | tablespace-setup:
|
129 | 139 | rm -rf ./testtablespace
|
130 | 140 | mkdir ./testtablespace
|
131 | 141 |
|
| 142 | + |
132 | 143 | ##
|
133 | 144 | ## Run tests
|
134 | 145 | ##
|
@@ -162,8 +173,7 @@ bigcheck: all
|
162 | 173 |
|
163 | 174 | clean distclean maintainer-clean: clean-lib
|
164 | 175 | # things built by `all' target
|
165 |
| - rm -f $(OBJS) |
166 |
| - $(MAKE) -C $(contribdir)/spi clean |
| 176 | + rm -f $(OBJS) refint$(DLSUFFIX) autoinc$(DLSUFFIX) |
167 | 177 | rm -f $(output_files) $(input_files) pg_regress_main.o pg_regress.o pg_regress$(X)
|
168 | 178 | # things created by various check targets
|
169 | 179 | rm -rf testtablespace
|
|
0 commit comments