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
|
2005-09-27 13:13:14 -04:00
|
|
|
# $PostgreSQL: pgsql/src/tutorial/Makefile,v 1.19 2005/09/27 17:13:14 tgl 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
|
|
|
|
2002-09-05 14:28:46 -04:00
|
|
|
SHLIB_LINK = $(BE_DLLLIBS)
|
1998-01-04 14:13:04 -05: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
|
2005-09-27 13:13:14 -04:00
|
|
|
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" < $< > $@
|