mirror of https://github.com/postgres/postgres
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>pull/14/head
parent
27846f02c1
commit
83aca89f7c
@ -1,18 +0,0 @@ |
||||
# contrib/pg_archivecleanup/Makefile
|
||||
|
||||
PGFILEDESC = "pg_archivecleanup - cleans archive when used with streaming replication"
|
||||
PGAPPICON = win32
|
||||
|
||||
PROGRAM = pg_archivecleanup
|
||||
OBJS = pg_archivecleanup.o $(WIN32RES)
|
||||
|
||||
ifdef USE_PGXS |
||||
PG_CONFIG = pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS) |
||||
else |
||||
subdir = contrib/pg_archivecleanup
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global |
||||
include $(top_srcdir)/contrib/contrib-global.mk |
||||
endif |
@ -0,0 +1,27 @@ |
||||
# src/bin/pg_archivecleanup/Makefile
|
||||
|
||||
PGFILEDESC = "pg_archivecleanup - cleans archive when used with streaming replication"
|
||||
PGAPPICON = win32
|
||||
|
||||
subdir = src/bin/pg_archivecleanup
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global |
||||
|
||||
OBJS = pg_archivecleanup.o $(WIN32RES)
|
||||
|
||||
all: pg_archivecleanup |
||||
|
||||
pg_archivecleanup: $(OBJS) | submake-libpgport |
||||
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
||||
|
||||
install: all installdirs |
||||
$(INSTALL_PROGRAM) pg_archivecleanup$(X) '$(DESTDIR)$(bindir)/pg_archivecleanup$(X)'
|
||||
|
||||
installdirs: |
||||
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
||||
|
||||
uninstall: |
||||
rm -f '$(DESTDIR)$(bindir)/pg_archivecleanup$(X)'
|
||||
|
||||
clean distclean maintainer-clean: |
||||
rm -f pg_archivecleanup$(X) $(OBJS)
|
@ -1,5 +1,5 @@ |
||||
/*
|
||||
* contrib/pg_archivecleanup/pg_archivecleanup.c |
||||
* src/bin/pg_archivecleanup/pg_archivecleanup.c |
||||
* |
||||
* pg_archivecleanup.c |
||||
* |
Loading…
Reference in new issue