How to fail on a find with grep using make?

"Gary Turner" <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <0B54B0F0E4074537BAE03C38CEE50C0B@garys>
Hi,
Apologies (and please let me know) if this is an inappropriate question for 
this list.
I'm using grep to compile files created by a gui editor. Occasionally a 'bad 
thing' gets into the files, and I'd like the compile to fail if that 'bad 
thing' is found in the file. By default grep 'fails' on not found, which 
would normally stop make.
What I want is something like  error if not grep 'bad thing' $<
I'm using cmd.exe.
I had a look at shell, then if, but it didn't seem to work. Is it possible 
it wasn't waiting for the command to finish before doing the if statement?
I wasn't sure if it was possible to use the $< variable with shell either.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.