I want to go through a set of files in makefile:
alltest: all
for f in $(FILES); do \
echo $$f; \
done
I want to write $(FILES) such that it regards the files of /abc/*.txt which do not contain ERROR1 or ERROR2 in their body.
Too look for a set of files which contain ERROR1 or ERROR2 in their body, I use find -iname '/abc/*.txt' | xargs grep -e "ERROR1" -e "ERROR2"
Could anyone tell me how to do the complement of the set, also how to integrate the shell command into the makefile?