Add check_keyword.pl script to perform some basic sanity checks to the
[PostgreSQL.git] / src / tutorial / Makefile
blobcc48dc48e8dd7f5fe7cced6dface298224671041
1 #-------------------------------------------------------------------------
3 # Makefile--
4 # Makefile for tutorial
6 # By default, this builds against an existing PostgreSQL installation
7 # (the one identified by whichever pg_config is first in your path).
8 # Within a configured source tree, you can say "gmake NO_PGXS=1 all"
9 # to build using the surrounding source tree.
11 # IDENTIFICATION
12 # $PostgreSQL$
14 #-------------------------------------------------------------------------
16 MODULES = complex funcs
17 DATA_built = advanced.sql basics.sql complex.sql funcs.sql syscat.sql
19 ifdef NO_PGXS
20 subdir = src/tutorial
21 top_builddir = ../..
22 include $(top_builddir)/src/Makefile.global
23 include $(top_srcdir)/src/makefiles/pgxs.mk
24 else
25 PG_CONFIG = pg_config
26 PGXS := $(shell $(PG_CONFIG) --pgxs)
27 include $(PGXS)
28 endif
30 %.sql: %.source
31 rm -f $@; \
32 C=`pwd`; \
33 sed -e "s:_OBJWD_:$$C:g" < $< > $@