1- # $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.54 2006/08/02 13:43:23 meskes Exp $
1+ # $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.55 2006/08/04 08:52:17 meskes Exp $
22
33subdir = src/interfaces/ecpg/test
44top_builddir = ../../../..
55include $(top_builddir ) /src/Makefile.global
66
77# port number for temp-installation test postmaster
8+ # this is also defined in test/connect/Makefile
89TEMP_PORT = 5$(DEF_PGPORT )
910
1011# default encoding
@@ -16,16 +17,28 @@ ifdef NO_LOCALE
1617NOLOCALE += --no-locale
1718endif
1819
19- all clean install installdirs uninstall dep depend distprep :
20+ all install installdirs uninstall dep depend distprep :
2021$(MAKE ) -C connect$@
2122$(MAKE ) -C sql$@
2223$(MAKE ) -C pgtypeslib$@
2324$(MAKE ) -C errors$@
2425$(MAKE ) -C compat_informix$@
2526$(MAKE ) -C complex$@
2627$(MAKE ) -C thread$@
27- # for some reason I couldn't figure out, ifeq($@,clean) ... does not work
28- if [ $@ = clean ]; then rm -f results/*.stdout results/*.stderr results/*.c; rm -rf tmp_check/; rm -f log/*.log; rm -f pg_regress.inc.sh regression.diff; fi
28+
29+ clean distclean maintainer-clean :
30+ $(MAKE ) -C connect$@
31+ $(MAKE ) -C connect extraclean
32+ $(MAKE ) -C sql$@
33+ $(MAKE ) -C pgtypeslib$@
34+ $(MAKE ) -C errors$@
35+ $(MAKE ) -C compat_informix$@
36+ $(MAKE ) -C complex$@
37+ $(MAKE ) -C thread$@
38+ rm -f results/* .stdout results/* .stderr results/* .c
39+ rm -rf tmp_check/
40+ rm -f log/* .log
41+ rm -f pg_regress.inc.sh regression.diff
2942
3043all : pg_regress.sh
3144
@@ -43,8 +56,10 @@ pg_regress.inc.sh: pg_regress.inc.sh.in $(top_builddir)/src/Makefile.global
4356 -e' s/@GCC@/$(GCC)/g' \
4457$< > $@
4558
46- test : all pg_regress.inc.sh
47- sh ./pg_regress.sh --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --listen-on-tcp -- multibyte=$(MULTIBYTE ) --load-language=plpgsql$(NOLOCALE )
59+ check : all pg_regress.inc.sh
60+ sh ./pg_regress.sh --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(NOLOCALE )
4861
49- check : all test
62+ # the same options, but with --listen-on-tcp
63+ checktcp : all pg_regress.inc.sh
64+ sh ./pg_regress.sh --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(NOLOCALE ) --listen-on-tcp
5065