mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Makefile: better fix for SCRIPTS_built and 9.4
This commit is contained in:
22
Makefile.in
22
Makefile.in
@@ -13,9 +13,14 @@ DATA = \
|
||||
repmgr--unpackaged--4.0.sql \
|
||||
repmgr--4.0.sql
|
||||
|
||||
DOCS = README.md repmgr.conf.sample
|
||||
|
||||
# Hacky workaround to install the binaries
|
||||
SCRIPTS_built += repmgr repmgrd
|
||||
SCRIPTS += repmgr repmgrd
|
||||
SCRIPTS_built = repmgr repmgrd
|
||||
|
||||
all: \
|
||||
repmgr \
|
||||
repmgrd
|
||||
|
||||
# When in development add -Werror
|
||||
PG_CPPFLAGS = -std=gnu89 -I$(libpq_srcdir) -Wall -Wmissing-prototypes -Wmissing-declarations $(EXTRA_CFLAGS)
|
||||
@@ -85,3 +90,16 @@ maintainer-additional-clean: clean
|
||||
rm -f config.status config.log
|
||||
rm -f Makefile
|
||||
@rm -rf autom4te.cache/
|
||||
|
||||
ifeq ($(MAJORVERSION),9.4)
|
||||
# We must emulate SCRIPTS_built for Pg 9.4 as PGXS doesn't support it
|
||||
install: install-scripts
|
||||
install-scripts:
|
||||
$(INSTALL_SCRIPT) $(SCRIPTS_built) '$(DESTDIR)$(bindir)/'
|
||||
.PHONY: install-scripts
|
||||
installdirs: installdirs-scripts
|
||||
installdirs-scripts:
|
||||
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
||||
.PHONY: installdirs-scripts
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user