File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -30,27 +30,24 @@ all: checksrcdir datapagemap.h logging.h receivelog.h streamutil.h pg_probackup
30
30
31
31
MAKE_GLOBAL ="../../src/Makefile.global"
32
32
TEST_GLOBAL: =$(shell test -e ../../src/Makefile.global)
33
- ifeq ($(.SHELLSTATUS ) ,1)
33
+
34
+ ifdef USE_PGXS
34
35
PG_CONFIG = pg_config
35
36
PGXS := $(shell $(PG_CONFIG ) --pgxs)
36
37
include $(PGXS )
37
-
38
- .PHONY : checksrcdir
39
- checksrcdir :
40
38
ifndef top_srcdir
41
39
@echo "You must have PostgreSQL source tree available to compile."
42
40
@echo "Pass the path to the PostgreSQL source tree to make, in the top_srcdir"
43
41
@echo "variable: \"make top_srcdir=<path to PostgreSQL source tree>\""
44
42
@exit 1
45
43
endif
46
44
else
47
- # TODO: fix me
48
- REGRESS =
49
45
subdir =contrib/pg_probackup
50
46
top_builddir =../..
51
47
include $(top_builddir ) /src/Makefile.global
52
48
include $(top_srcdir ) /contrib/contrib-global.mk
53
49
endif
50
+
54
51
PG_CPPFLAGS = -I$(libpq_srcdir ) ${PTHREAD_CFLAGS}
55
52
override CPPFLAGS := -DFRONTEND $(CPPFLAGS ) $(PG_CPPFLAGS )
56
53
PG_LIBS = $(libpq_pgport ) ${PTHREAD_CFLAGS}
You can’t perform that action at this time.
0 commit comments