1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-09 14:33:17 +02:00

Rework Makefile and remove incoherent definitions

-DFRONTEND should be overridden as part of CPPFLAGS and it is not really
necessary to have the source list. The definition of pg_arman.h was rather
obscure as well.
This commit is contained in:
Michael Paquier 2016-01-13 22:47:49 +09:00
parent dc27aab59d
commit 49d37ecd3e
2 changed files with 18 additions and 22 deletions

View File

@ -1,23 +1,21 @@
PROGRAM = pg_arman PROGRAM = pg_arman
SRCS = \ OBJS = backup.o \
backup.c \ catalog.o \
catalog.c \ data.o \
data.c \ delete.o \
delete.c \ dir.o \
dir.c \ fetch.o \
fetch.c \ init.o \
init.c \ parray.o \
parray.c \ pg_arman.o \
pg_arman.c \ restore.o \
restore.c \ show.o \
show.c \ status.o \
status.c \ util.o \
util.c \ validate.o \
validate.c \ xlog.o \
xlog.c \ pgut/pgut.o \
pgut/pgut.c \ pgut/pgut-port.o
pgut/pgut-port.c
OBJS = $(SRCS:.c=.o)
DOCS = doc/pg_arman.txt DOCS = doc/pg_arman.txt
@ -32,6 +30,7 @@ endif # XMLTO
endif # ASCIIDOC endif # ASCIIDOC
PG_CPPFLAGS = -I$(libpq_srcdir) PG_CPPFLAGS = -I$(libpq_srcdir)
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
PG_LIBS = $(libpq_pgport) PG_LIBS = $(libpq_pgport)
REGRESS = init option show delete backup restore REGRESS = init option show delete backup restore
@ -40,8 +39,6 @@ PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs) PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS) include $(PGXS)
$(OBJS): pg_arman.h
# Part related to documentation # Part related to documentation
# Compile documentation as well is ASCIIDOC and XMLTO are defined # Compile documentation as well is ASCIIDOC and XMLTO are defined
ifneq ($(ASCIIDOC),) ifneq ($(ASCIIDOC),)

View File

@ -7,7 +7,6 @@
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#define FRONTEND
#include "postgres_fe.h" #include "postgres_fe.h"
#include "libpq/pqsignal.h" #include "libpq/pqsignal.h"