Skip to content

Commit a16ce5f

Browse files
author
Ekaterina Sokolova
committed
Beautify Makefile in terms of supporting old versions
1 parent 61b7969 commit a16ce5f

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

Makefile

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ RELATIVE_INCLUDES = $(addprefix src/, $(INCLUDES))
2121

2222
LDFLAGS_SL += $(filter -lm, $(LIBS))
2323

24-
REGRESS = security rum rum_validate rum_hash ruminv timestamp orderby orderby_hash \
25-
altorder altorder_hash limits \
24+
REGRESS = security rum rum_validate rum_hash ruminv timestamp \
25+
orderby orderby_hash altorder altorder_hash limits \
2626
int2 int4 int8 float4 float8 money oid \
2727
time timetz date interval \
2828
macaddr inet cidr text varchar char bytea bit varbit \
29-
numeric rum_weight expr
29+
numeric rum_weight expr array
3030

3131
TAP_TESTS = 1
3232

@@ -66,25 +66,17 @@ endif
6666
endif
6767
endif
6868

69-
ifeq ($(MAJORVERSION), 9.6)
70-
# arrays are not supported on 9.6
71-
else
72-
REGRESS += array
73-
endif
74-
75-
# For 9.6-11 we have to make specific target with tap tests
69+
# --------------------------------------------------------
70+
# Make conditional targets to save backward compatibility
71+
# with PG11, PG10 and PG9.6.
72+
# --------------------------------------------------------
7673
ifeq ($(MAJORVERSION), $(filter 9.6% 10% 11%, $(MAJORVERSION)))
77-
wal-check: temp-install
78-
$(prove_check)
7974

80-
check: wal-check
75+
# arrays are not supported on 9.6
76+
ifeq ($(MAJORVERSION), 9.6)
77+
REGRESS := $(filter-out array, $(REGRESS))
8178
endif
8279

83-
#
84-
# Make conditional targets to save backward compatibility with PG11, PG10 and PG9.6.
85-
#
86-
ifeq ($(MAJORVERSION), $(filter 9.6% 10% 11%, $(MAJORVERSION)))
87-
8880
install: installincludes
8981

9082
installincludes:
@@ -108,4 +100,9 @@ isolationcheck: | submake-isolation submake-rum temp-install
108100
$(pg_isolation_regress_check) \
109101
--temp-config $(top_srcdir)/contrib/rum/logical.conf \
110102
$(ISOLATIONCHECKS)
103+
104+
# For 9.6-11 we have to make specific target with tap tests
105+
check: temp-install
106+
$(prove_check)
107+
111108
endif

0 commit comments

Comments
 (0)