Suffix binaries with "4" ("repmgr4" etc)

So we can use the existing repmgr in parallel for development
This commit is contained in:
Ian Barwick
2017-04-18 12:25:25 +09:00
parent e6237cc81a
commit 856244fdd6
2 changed files with 11 additions and 2 deletions

4
.gitignore vendored
View File

@@ -37,3 +37,7 @@ lib*.pc
# other # other
/.lineno /.lineno
# generated binaries
repmgr4
repmgrd4

View File

@@ -10,7 +10,7 @@ MODULE_big = repmgr
EXTENSION = repmgr EXTENSION = repmgr
# Hacky workaround to install the binaries # Hacky workaround to install the binaries
SCRIPTS_built = repmgr SCRIPTS_built = repmgr4 repmgrd4
# When in development add -Werror # When in development add -Werror
@@ -25,10 +25,14 @@ include Makefile.global
$(info Building against PostgreSQL $(MAJORVERSION)) $(info Building against PostgreSQL $(MAJORVERSION))
REPMGR_CLIENT_OBJS = repmgr-client.o REPMGR_CLIENT_OBJS = repmgr-client.o
REPMGRD_OBJS = repmgrd.o
repmgr: $(REPMGR_CLIENT_OBJS) repmgr4: $(REPMGR_CLIENT_OBJS)
$(CC) $(CFLAGS) $(REPMGR_CLIENT_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X) $(CC) $(CFLAGS) $(REPMGR_CLIENT_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
repmgrd4: $(REPMGRD_OBJS)
$(CC) $(CFLAGS) $(REPMGRD_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
# Ensure Makefiles are up-to-date (should we move this to Makefile.global?) # Ensure Makefiles are up-to-date (should we move this to Makefile.global?)
Makefile: Makefile.in config.status configure Makefile: Makefile.in config.status configure
@@ -43,6 +47,7 @@ maintainer-clean: additional-maintainer-clean
additional-clean: additional-clean:
rm -f repmgr-client.o rm -f repmgr-client.o
rm -f repmgrd.o
maintainer-additional-clean: clean maintainer-additional-clean: clean
rm -f configure rm -f configure