summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: d09ee3d47074951f15cdd83687ec8e2023102830 (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
41
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

c_s_gen = $(AM_V_GEN)cmd="$(top_srcdir)/config.status --file=$@:$<" ; \
	if $(AM_V_P); then $$cmd; else $$cmd &>/dev/null; fi

c_s_script_gen = $(c_s_gen) && chmod +x $@

postgresql$(DISTSUFF)-ctl: postgresql-ctl.in
	$(c_s_script_gen)

postgresql$(DISTSUFF)-setup: postgresql-setup.in
	$(c_s_script_gen)

conf/postgresql$(DISTSUFF): conf/postgresql.in
	$(c_s_gen)

postgresql$(DISTSUFF).service: postgresql.service.in
	$(c_s_gen)

README.rpm-dist: README.rpm-dist.in
	$(c_s_gen)

EXTRA_DIST = *.in conf/*.in

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