summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-01 08:58:19 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-01 09:46:37 +0200
commit00683dad1a27a49e99f4a28e3924e1c97b1b9594 (patch)
tree5199fa1034c14edf53fb7f2ffafe3ea3b44eac3a /doc/Makefile.am
parent3768b99c83410e9744f35494624f41f78e5ab867 (diff)
downloadpostgresql-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 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index c099ad8..d1ed4e5 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,7 +1,10 @@
HELP2MAN = $(SHELL) $(top_srcdir)/$(config_aux_dir)/missing --run help2man
-dist_man_MANS = $(srcdir)/postgresql-setup.1
+man_MANS = $(srcdir)/postgresql$(DISTSUFF)-setup.1
-$(srcdir)/postgresql-setup.1: $(top_srcdir)/postgresql-setup.in
- @echo "Updating the man page '$@'"; \
- $(HELP2MAN) --output=$@ $(top_srcdir)/postgresql-setup -N
+# TODO: distribute also help2man
+
+$(srcdir)/postgresql$(DISTSUFF)-setup.1: $(top_srcdir)/postgresql-setup.in
+ $(AM_V_GEN)$(HELP2MAN) --output=$@ $(top_srcdir)/postgresql$(DISTSUFF)-setup -N
+
+CLEANFILES=$(man_MANS) $(srcdir)/*.1