checking file content in Make
<p>I am doing some data validation. Basically, I have a list of files and I want to make sure they are consistent. For a file to be consistent, they need to match the number of occurences.</p>

<pre><code>grep -c ValidId file.????.txt
wc -l &lt; output.????.txt
</code></pre>

<p>If they both match, I would like to create a done file so I don't have to recheck again. This will be a routine in my Makefile for data validation.</p>

<p>How would I go about doing this?</p>