]> granicus.if.org Git - postgresql/blob - src/tutorial/Makefile
A visit from the message-style police ...
[postgresql] / src / tutorial / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for tutorial
5 #
6 # IDENTIFICATION
7 #    $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.16 2002/09/05 18:28:46 petere Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/tutorial
12 top_builddir = ../..
13 include $(top_builddir)/src/Makefile.global
14
15 override CFLAGS+= $(CFLAGS_SL)
16 SHLIB_LINK = $(BE_DLLLIBS)
17
18 #
19 # DLOBJS are the dynamically-loaded object files.  The "funcs" queries
20 # include CREATE FUNCTIONs that load routines from these files.
21 #
22 DLOBJS= complex$(DLSUFFIX) funcs$(DLSUFFIX)
23
24 QUERIES= advanced.sql basics.sql complex.sql funcs.sql syscat.sql
25
26 all: $(DLOBJS) $(QUERIES)
27
28 %.sql: %.source
29         rm -f $@; \
30         C=`pwd`; \
31         sed -e "s:_OBJWD_:$$C:g" < $< > $@
32
33 clean distclean maintainer-clean:
34         rm -f $(DLOBJS) $(QUERIES)