~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/tutorial/Makefile

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------------
 
2
#
 
3
# Makefile--
 
4
#    Makefile for tutorial
 
5
#
 
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.
 
10
#
 
11
# IDENTIFICATION
 
12
#    $PostgreSQL: pgsql/src/tutorial/Makefile,v 1.18 2005-01-13 18:23:22 tgl Exp $
 
13
#
 
14
#-------------------------------------------------------------------------
 
15
 
 
16
MODULES = complex funcs
 
17
DATA_built = advanced.sql basics.sql complex.sql funcs.sql syscat.sql
 
18
 
 
19
SHLIB_LINK = $(BE_DLLLIBS)
 
20
 
 
21
ifdef NO_PGXS
 
22
subdir = src/tutorial
 
23
top_builddir = ../..
 
24
include $(top_builddir)/src/Makefile.global
 
25
include $(top_srcdir)/src/makefiles/pgxs.mk
 
26
else
 
27
PGXS = $(shell pg_config --pgxs)
 
28
include $(PGXS)
 
29
endif
 
30
 
 
31
%.sql: %.source
 
32
        rm -f $@; \
 
33
        C=`pwd`; \
 
34
        sed -e "s:_OBJWD_:$$C:g" < $< > $@