I have the following code in my Makefile:
copy: PATFILES= $(shell find /pattern/ -name "*.PAT")
ifneq "$(PATFILES)" ""
I want to search for PAT files in the folder /pattern. If any files are found, I want to gzip them.
However the ifneq condition is not working, it always evaluates to false. I tried many options. What am I doing wring?