diff options
| author | Pavel Raiskup <praiskup@redhat.com> | 2014-07-01 08:58:19 +0200 |
|---|---|---|
| committer | Pavel Raiskup <praiskup@redhat.com> | 2014-07-01 09:46:37 +0200 |
| commit | 00683dad1a27a49e99f4a28e3924e1c97b1b9594 (patch) | |
| tree | 5199fa1034c14edf53fb7f2ffafe3ea3b44eac3a /Makefile.am | |
| parent | 3768b99c83410e9744f35494624f41f78e5ab867 (diff) | |
| download | postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.tar.gz postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.tar.xz postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.zip | |
postgresql-ctl, DISTSUFF: introduce
We need postgresql-ctl for to keep backward compatibility with
clients setting "PGPORT" directly in service file.
DISTSUFF variable (which is read by ./configure) may be used to
generated namespaced binary names -- e.g. DISTSUFF=93 results in
postgresql93-setup is generated instead of postgresql-setup.
This commit also adjusts autotools build system to not generate
scripts by ./configure, but rather by make.
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index c197a0c..d981ecc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,17 @@ SUBDIRS = . doc -bin_SCRIPTS = postgresql-setup +bin_SCRIPTS = postgresql$(DISTSUFF)-setup + +libexec_SCRIPTS = postgresql$(DISTSUFF)-ctl + +config_status = $(top_srcdir)/config.status + +postgresql$(DISTSUFF)-ctl: postgresql-ctl.in + $(AM_V_GEN)cmd="$(config_status) --file=$@:$<" ; \ + if $(AM_V_P); then $$cmd; else $$cmd &>/dev/null; fi && chmod +x $@ + +postgresql$(DISTSUFF)-setup: postgresql-setup.in + $(AM_V_GEN)cmd="$(config_status) --file=$@:$<" ; \ + if $(AM_V_P); then $$cmd; else $$cmd &>/dev/null; fi && chmod +x $@ + +CLEANFILES = $(bin_SCRIPTS) $(libexec_SCRIPTS) |
