File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -20,22 +20,26 @@ SHLIB_LINK = $(libpq)
20
20
21
21
REGRESS = init basic extended toasted replication_set add_table matview bidirectional foreign_key functions drop
22
22
23
- ifdef PG94
24
- PG_CPPFLAGS += -Icompat
25
- OBJS += compat/pglogical_compat.o
26
- endif
27
-
28
23
ifdef USE_PGXS
29
24
25
+
30
26
# For regression checks
31
27
# http://www.postgresql.org/message-id/CAB7nPqTsR5o3g-fBi6jbsVdhfPiLFWQ_0cGU5=94Rv_8W3qvFA@mail.gmail.com
32
28
# this makes "make check" give a useful error
33
29
abs_top_builddir = .
34
30
NO_TEMP_INSTALL = yes
35
31
36
- PG_CPPFLAGS += -Ipglogical_output
37
-
38
32
PG_CONFIG = pg_config
33
+
34
+ # PG_CPPFLAGS += -Ipglogical_output
35
+
36
+ PGVER := $(shell $(PG_CONFIG ) --version | sed 's/[^0-9\.]//g' | awk -F . '{ print $$1$$2 }')
37
+
38
+ ifeq ($(PGVER ) ,94)
39
+ PG_CPPFLAGS += -Icompat
40
+ OBJS += compat/pglogical_compat.o
41
+ endif
42
+
39
43
PGXS := $(shell $(PG_CONFIG ) --pgxs)
40
44
include $(PGXS )
41
45
@@ -54,7 +58,7 @@ pglogical_create_subscriber: pglogical_create_subscriber.o pglogical_fe.o
54
58
# write permissions to their production PostgreSQL install (right?)
55
59
# but this is still not ideal.
56
60
57
- ifdef PG94
61
+ ifeq ( $( PGVER ) ,94)
58
62
regresscheck : ;
59
63
else
60
64
regresscheck :
@@ -66,13 +70,7 @@ regresscheck:
66
70
--create-role=logical \
67
71
$(REGRESS )
68
72
69
- pglogical_output :
70
- $(MAKE ) -C pglogical_output clean all
71
-
72
- pglogical_output_install : pglogical_output
73
- $(MAKE ) -C pglogical_output install
74
-
75
- check : pglogical_output_install install regresscheck ;
73
+ check : install regresscheck ;
76
74
77
75
endif
78
76
@@ -93,4 +91,4 @@ EXTRA_REGRESS_OPTS += $(top_srcdir)/contrib/regress-postgresql.conf
93
91
94
92
endif
95
93
96
- .PHONY : regresscheck pglogical_output pglogical_output_install
94
+ .PHONY : regresscheck
You can’t perform that action at this time.
0 commit comments