Skip to content

Commit 41bdaf6

Browse files
committed
cleanup Makefile
1 parent b3aa4cf commit 41bdaf6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,24 @@ all: checksrcdir datapagemap.h logging.h receivelog.h streamutil.h pg_probackup
3030

3131
MAKE_GLOBAL="../../src/Makefile.global"
3232
TEST_GLOBAL:=$(shell test -e ../../src/Makefile.global)
33-
ifeq ($(.SHELLSTATUS),1)
33+
34+
ifdef USE_PGXS
3435
PG_CONFIG = pg_config
3536
PGXS := $(shell $(PG_CONFIG) --pgxs)
3637
include $(PGXS)
37-
38-
.PHONY: checksrcdir
39-
checksrcdir:
4038
ifndef top_srcdir
4139
@echo "You must have PostgreSQL source tree available to compile."
4240
@echo "Pass the path to the PostgreSQL source tree to make, in the top_srcdir"
4341
@echo "variable: \"make top_srcdir=<path to PostgreSQL source tree>\""
4442
@exit 1
4543
endif
4644
else
47-
#TODO: fix me
48-
REGRESS =
4945
subdir=contrib/pg_probackup
5046
top_builddir=../..
5147
include $(top_builddir)/src/Makefile.global
5248
include $(top_srcdir)/contrib/contrib-global.mk
5349
endif
50+
5451
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS}
5552
override CPPFLAGS := -DFRONTEND $(CPPFLAGS) $(PG_CPPFLAGS)
5653
PG_LIBS = $(libpq_pgport) ${PTHREAD_CFLAGS}

0 commit comments

Comments
 (0)