mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-22 09:53:23 +02:00
With the PGXS boilerplate in place, pg_xlogdump currently fails with an ominous error message that certain targets cannot be built because certain files do not exist. Remove that and instead throw a quick error message alerting the user of the actual problem, which should be easier to diagnose that the statu quo. Andres Freund
32 lines
818 B
Makefile
32 lines
818 B
Makefile
# contrib/pg_xlogdump/Makefile
|
|
|
|
PGFILEDESC = "pg_xlogdump"
|
|
PGAPPICON=win32
|
|
|
|
PROGRAM = pg_xlogdump
|
|
OBJS = pg_xlogdump.o compat.o xlogreader.o rmgrdesc.o \
|
|
$(RMGRDESCOBJS) $(WIN32RES)
|
|
|
|
RMGRDESCSOURCES = $(notdir $(wildcard $(top_srcdir)/src/backend/access/rmgrdesc/*desc.c))
|
|
RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
|
|
|
|
EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
|
|
|
|
ifdef USE_PGXS
|
|
$(error "pg_xlogdump cannot be built with PGXS")
|
|
endif
|
|
|
|
subdir = contrib/pg_xlogdump
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
|
|
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
|
|
|
xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
$(RMGRDESCSOURCES): % : $(top_srcdir)/src/backend/access/rmgrdesc/%
|
|
rm -f $@ && $(LN_S) $< .
|