mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Suffix binaries with "4" ("repmgr4" etc)
So we can use the existing repmgr in parallel for development
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -37,3 +37,7 @@ lib*.pc
|
||||
|
||||
# other
|
||||
/.lineno
|
||||
|
||||
# generated binaries
|
||||
repmgr4
|
||||
repmgrd4
|
||||
|
||||
@@ -10,7 +10,7 @@ MODULE_big = repmgr
|
||||
EXTENSION = repmgr
|
||||
|
||||
# Hacky workaround to install the binaries
|
||||
SCRIPTS_built = repmgr
|
||||
SCRIPTS_built = repmgr4 repmgrd4
|
||||
|
||||
|
||||
# When in development add -Werror
|
||||
@@ -25,10 +25,14 @@ include Makefile.global
|
||||
$(info Building against PostgreSQL $(MAJORVERSION))
|
||||
|
||||
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)
|
||||
|
||||
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?)
|
||||
Makefile: Makefile.in config.status configure
|
||||
@@ -43,6 +47,7 @@ maintainer-clean: additional-maintainer-clean
|
||||
|
||||
additional-clean:
|
||||
rm -f repmgr-client.o
|
||||
rm -f repmgrd.o
|
||||
|
||||
maintainer-additional-clean: clean
|
||||
rm -f configure
|
||||
|
||||
Reference in New Issue
Block a user