After reading this answer for "How do I check if file exists in Makefile?" question, I decided to try. I have a file tact1.pdf
in the same folder with the makefile.
Code:
FILE = 'tact1.pdf'
all:
ifneq ("$(wildcard $(FILE))","")
@echo "File exists"
else
@echo "No file"
endif
Output:
$ make
No file
I tried the full path to the file: same result. What's wrong? OS: Windows XP, using cygwin.