+ifeq (,$(filter nocheck stage1, $(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
I don't think this is correct. The filter command takes a single pattern, followed by a set of whitespace-separated values to match it against. I don't believe you can filter both nocheck and stage1 in a single command.
+ifeq (,$(filter nocheck stage1, $(DEB_BUILD_ OPTIONS) $(DEB_BUILD_ PROFILES) ))
I don't think this is correct. The filter command takes a single pattern, followed by a set of whitespace- separated values to match it against. I don't believe you can filter both nocheck and stage1 in a single command.