Makefile ifeq or statement For example , ifneq (,$(filter $(hardware),H1 H2)) echo "This is H1 or H2" ......endif Refer to this link:http://osdir.com/ml/gnu.make.windows/2004-03/msg00063.html