Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6423a8ee
Commit
6423a8ee
authored
Nov 01, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix contrib/rserv to install successfully when built outside source tree.
(Not that it will actually work with 7.3, I fear.)
parent
c87867f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
contrib/contrib-global.mk
contrib/contrib-global.mk
+17
-3
contrib/rserv/Makefile
contrib/rserv/Makefile
+6
-13
No files found.
contrib/contrib-global.mk
View file @
6423a8ee
# $Header: /cvsroot/pgsql/contrib/contrib-global.mk,v 1.
3 2002/09/05 18:28:45 petere
Exp $
# $Header: /cvsroot/pgsql/contrib/contrib-global.mk,v 1.
4 2002/11/01 23:45:37 tgl
Exp $
# This file contains generic rules to build many kinds of simple
# contrib modules. You only need to set a few variables and include
...
...
@@ -24,6 +24,8 @@
# which need to be built first
# DOCS -- random files to install under $PREFIX/doc/contrib
# SCRIPTS -- script files (not binaries) to install into $PREFIX/bin
# SCRIPTS_built -- script files (not binaries) to install into $PREFIX/bin,
# which need to be built first
# REGRESS -- list of regression test cases (without suffix)
#
# or at most one of these two:
...
...
@@ -52,7 +54,7 @@ ifdef PG_CPPFLAGS
override CPPFLAGS
:
= $(PG_CPPFLAGS) $(CPPFLAGS)
endif
all
:
$(PROGRAM) $(DATA_built) $(addsuffix $(DLSUFFIX)
,
$(MODULES))
all
:
$(PROGRAM) $(DATA_built) $(
SCRIPTS_built) $(
addsuffix $(DLSUFFIX)
,
$(MODULES))
ifdef
MODULE_big
# shared library parameters
...
...
@@ -100,6 +102,12 @@ ifdef SCRIPTS
$(INSTALL_SCRIPT)
$$
file
$(DESTDIR)$(bindir)
;
\
done
endif
# SCRIPTS
ifdef
SCRIPTS_built
@
for
file
in
$(SCRIPTS_built)
;
do
\
echo
"
$(INSTALL_SCRIPT)
$$
file
$(DESTDIR)$(bindir)
"
;
\
$(INSTALL_SCRIPT)
$$
file
$(DESTDIR)$(bindir)
;
\
done
endif
# SCRIPTS_built
installdirs
:
...
...
@@ -112,7 +120,7 @@ endif
ifdef
DOCS
$(mkinstalldirs)
$(DESTDIR)$(docdir)
/contrib
endif
ifneq
(,$(PROGRAM)$(SCRIPTS))
ifneq
(,$(PROGRAM)$(SCRIPTS)
$(SCRIPTS_built)
)
$(mkinstalldirs)
$(DESTDIR)$(bindir)
endif
...
...
@@ -136,6 +144,9 @@ endif
ifdef
SCRIPTS
rm
-f
$(
addprefix
$(DESTDIR)$(bindir)
/,
$(SCRIPTS)
)
endif
ifdef
SCRIPTS_built
rm
-f
$(
addprefix
$(DESTDIR)$(bindir)
/,
$(SCRIPTS_built)
)
endif
clean
:
...
...
@@ -145,6 +156,9 @@ endif
ifdef
DATA_built
rm
-f
$(DATA_built)
endif
ifdef
SCRIPTS_built
rm
-f
$(SCRIPTS_built)
endif
ifdef
PROGRAM
rm
-f
$(PROGRAM)$(X)
endif
...
...
contrib/rserv/Makefile
View file @
6423a8ee
...
...
@@ -11,24 +11,17 @@ 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)
SCRIPTS_built
=
RservTest
SCRIPTS_built
+=
MasterInit MasterAddTable Replicate MasterSync CleanLog
SCRIPTS_built
+=
SlaveInit SlaveAddTable GetSyncID
SCRIPTS_built
+=
PrepareSnapshot ApplySnapshot
SCRIPTS_built
+=
InitRservTest
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
$(SCRIPTS
_built
)
:
%: %.in
sed
-e
's,@MODULE_FILENAME@,$$libdir/
$(NAME)
,g'
\
-e
's:@SQLDIR@:
$(datadir)
/contrib:g'
\
-e
's:@BINDIR@:
$(bindir)
:g'
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment