Skip to content

Commit 56fdf1f

Browse files
committed
Ensure $(COMPAT_LEVEL) evaluated lazily
1 parent a2d55e9 commit 56fdf1f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ COMPILER-$(COMPAT_VERSION):
154154
test_ver = $(shell if [ $(COMPAT_VERSION) -ge $(1) ] ; then echo ge ; fi)
155155

156156
# This list must be in order
157-
COMPAT_LEVEL := \
158-
$(strip $(if $(call test_ver,40100),401) \
159-
$(if $(call test_ver,40200),402) \
160-
$(if $(call test_ver,40300),403) \
161-
$(if $(call test_ver,40500),405) \
162-
$(if $(call test_ver,40600),406) \
163-
$(if $(call test_ver,40700),407))
157+
COMPAT_LEVEL = $(eval COMPAT_LEVEL := \
158+
$$(strip $$(if $$(call test_ver,40100),401) \
159+
$$(if $$(call test_ver,40200),402) \
160+
$$(if $$(call test_ver,40300),403) \
161+
$$(if $$(call test_ver,40500),405) \
162+
$$(if $$(call test_ver,40600),406) \
163+
$$(if $$(call test_ver,40700),407)))$(COMPAT_LEVEL)
164164

165165
Compat.ml: Compat.ml.in COMPILER-$(COMPAT_VERSION)
166166
sed -e '$(if $(COMPAT_LEVEL),/^$(subst $(SPACE),@\|^,$(COMPAT_LEVEL))@/d;)s/^[0-9]*@//' $< > $@

0 commit comments

Comments
 (0)