mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-27 07:37:18 +02:00
contrib/contrib-global.mk library and _generally_ behave like Makefiles for other contrib modules. Besides it fixes Perl's interpolation of $libdir variable, which should be passed to backend instead. This patch is done against PostgreSQL 7.3b2 Besides, I want to thank Peter Eisentraut for his very friendly and helpful attitude and politely ask him to check whether contrib modules actually continue to work after he implements another major change to their build process. Alexey Borzov
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# Makefile for erServer demonstration implementation
|
|
# (c) 2000 Vadim Mikheev, PostgreSQL Inc.
|
|
|
|
subdir = contrib/rserv
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
NAME = rserv
|
|
MODULES = rserv
|
|
DATA = RServ.pm
|
|
DATA_built = master.sql slave.sql
|
|
SQLS = $(DATA_built)
|
|
DOCS = README.rserv
|
|
SCRIPTS = RservTest
|
|
SCRIPTS += MasterInit MasterAddTable Replicate MasterSync CleanLog
|
|
SCRIPTS += SlaveInit SlaveAddTable GetSyncID
|
|
SCRIPTS += PrepareSnapshot ApplySnapshot
|
|
SCRIPTS += InitRservTest
|
|
EXTRA_CLEAN = $(SCRIPTS)
|
|
|
|
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
|
override CFLAGS += $(CFLAGS_SL)
|
|
SHLIB_LINK = $(BE_DLLLIBS)
|
|
|
|
|
|
all: $(SCRIPTS) $(SQLS) $(addsuffix $(DLSUFFIX), $(MODULES))
|
|
|
|
$(SQLS): %.sql: %.sql.in
|
|
sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@
|
|
|
|
$(SCRIPTS): %: %.in
|
|
sed -e 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' \
|
|
-e 's:@SQLDIR@:$(datadir)/contrib:g' \
|
|
-e 's:@BINDIR@:$(bindir):g' \
|
|
-e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@
|
|
chmod a+x $@
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|