1996-07-09 02:22:35 -04:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Makefile--
|
1996-11-12 06:43:32 -05:00
|
|
|
# Makefile for tutorial
|
1996-07-09 02:22:35 -04:00
|
|
|
#
|
2005-01-13 13:23:22 -05:00
|
|
|
# By default, this builds against an existing PostgreSQL installation
|
|
|
|
|
# (the one identified by whichever pg_config is first in your path).
|
|
|
|
|
# Within a configured source tree, you can say "gmake NO_PGXS=1 all"
|
|
|
|
|
# to build using the surrounding source tree.
|
|
|
|
|
#
|
1996-07-09 02:22:35 -04:00
|
|
|
# IDENTIFICATION
|
2008-04-07 10:15:58 -04:00
|
|
|
# $PostgreSQL: pgsql/src/tutorial/Makefile,v 1.21 2008/04/07 14:15:58 petere Exp $
|
1996-07-09 02:22:35 -04:00
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2005-01-13 13:23:22 -05:00
|
|
|
MODULES = complex funcs
|
|
|
|
|
DATA_built = advanced.sql basics.sql complex.sql funcs.sql syscat.sql
|
1996-07-09 02:22:35 -04:00
|
|
|
|
2005-01-13 13:23:22 -05:00
|
|
|
ifdef NO_PGXS
|
|
|
|
|
subdir = src/tutorial
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
include $(top_srcdir)/src/makefiles/pgxs.mk
|
|
|
|
|
else
|
2007-06-26 18:05:04 -04:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2005-01-13 13:23:22 -05:00
|
|
|
include $(PGXS)
|
|
|
|
|
endif
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1996-11-12 06:43:32 -05:00
|
|
|
%.sql: %.source
|
|
|
|
|
rm -f $@; \
|
|
|
|
|
C=`pwd`; \
|
2001-10-26 16:45:33 -04:00
|
|
|
sed -e "s:_OBJWD_:$$C:g" < $< > $@
|