about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23e8b2fcb9..19a1f883f6 100644
--- a/Makefile
+++ b/Makefile
@@ -229,7 +229,8 @@ tests-clean:
 	@$(MAKE) subdir_testclean no_deps=t
 
 tests: $(objpfx)c++-types-check.out
-ifneq (no,$(CXX)$(wildcard scripts/data/c++-types-$(base-machine)-$(config-os).data))
+ifneq ($(CXX),no)
+ifneq (,$(wildcard scripts/data/c++-types-$(base-machine)-$(config-os).data))
 $(objpfx)c++-types-check.out: scripts/data/c++-types-$(base-machine)-$(config-os).data
 	scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
 else
@@ -237,6 +238,7 @@ $(objpfx)c++-types-check.out:
 	@echo 'WARNING C++ tests not run; create a c++-types-XXX file'
 	@echo "not run" > $@
 endif
+endif
 
 # The realclean target is just like distclean for the parent, but we want
 # the subdirs to know the difference in case they care.