tags:

views:

841

answers:

1

For example: I want:

if file1 exists:

CLEAN_SRC = *.h file3

else

CLEAN_SRC =
+2  A: 

If file1 does not exist then $(wildcard file1) will evaluate to an empty string.

ifeq ($(wildcard file1),) 
    CLEAN_SRC =
else 
    CLEAN_SRC = *.h file3
endif
John Kugelman
Thanks, it works.
arsane