For example: I want:
if file1 exists:
CLEAN_SRC = *.h file3
yet
CLEAN_SRC =
If file1 does not exist, then $(wildcard file1) will evaluate the empty string.
file1
$(wildcard file1)
ifeq ($(wildcard file1),) CLEAN_SRC = else CLEAN_SRC = *.h file3 endif