summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 43ab15a52efe357bd0061cb3aece296a9bcdd6fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SUBDIRS = . doc

bin_SCRIPTS = postgresql$(DISTSUFF)-setup

libexec_SCRIPTS = postgresql$(DISTSUFF)-ctl

pkgsysconfdir = $(PKGCONFIG_DIR)
pkgsysconf_DATA = conf/postgresql$(DISTSUFF)

systemdunitsdir = $(prefix)/lib/systemd/system
systemdunits_DATA = postgresql$(DISTSUFF).service

nodist_pgdoc_DATA = README.rpm-dist

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 $@

conf/postgresql$(DISTSUFF): conf/postgresql.in
	$(AM_V_GEN)cmd="$(config_status) --file=$@:$<" ; \
	if $(AM_V_P); then $$cmd; else $$cmd &>/dev/null; fi

postgresql$(DISTSUFF).service: postgresql.service.in
	$(AM_V_GEN)cmd="$(config_status) --file=$@:$<" ; \
	if $(AM_V_P); then $$cmd; else $$cmd &>/dev/null; fi

README.rpm-dist: README.rpm-dist.in
	$(AM_V_GEN)cmd="$(config_status) --file=$@:$<" ; \
	if $(AM_V_P); then $$cmd; else $$cmd &>/dev/null; fi

CLEANFILES = $(bin_SCRIPTS) \
	     $(libexec_SCRIPTS) \
	     $(nodist_pgdoc_DATA) \
	     $(nodist_systemdunits_DATA)