title: Makefile - generating thumbnails from pictures
body: <p>I'm trying to make a Makefile. I have one folder called pictures and one called thumbs. In pictures there are pictures called pic1.jpg, pic2.jpg, pic3.jpg, and so on. I want to make thumbnails from these pictures and place them in the thumbs folder. This is what I have tried:</p>
  
  <pre><code>infiles = $(wildcard pictures/*.jpg) 
  outfiles = $(subst pictures,thumbs, $(infiles))
  all : $(outfiles)
         convert -thumbnail 100 pictures/*.jpg thumbs/*.jpg
  </code></pre>
  
  <p>Anyone knows what I'm doing wrong?</p>