- invert logic for nocheck_targets to exclude the empty default target.
diff --git a/Rules.mak b/Rules.mak
index 000790e..e3e3dd6 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -115,7 +115,7 @@
rm -f conftest.c conftest.o; \
fi)
-ifeq ($(filter-out $(nocheck_targets),$(MAKECMDGOALS)),)
+ifneq ($(filter $(nocheck_targets),$(MAKECMDGOALS)),)
check_cc:=
endif
@@ -130,7 +130,7 @@
echo "-Wl,$(2)" ; \
fi)
-ifeq ($(filter-out $(nocheck_targets),$(MAKECMDGOALS)),)
+ifneq ($(filter $(nocheck_targets),$(MAKECMDGOALS)),)
check_ld:=
endif
@@ -148,7 +148,7 @@
rm -f conftest.c conftest.o > /dev/null 2>&1 ; \
fi)
-ifeq ($(filter-out $(nocheck_targets),$(MAKECMDGOALS)),)
+ifneq ($(filter $(nocheck_targets),$(MAKECMDGOALS)),)
check_strip:=
endif