I'm sure this is dead easy but I can't figure it out. I use MarkDown to convert content text to html but MarkDown does not provide the appropriate "<html><head>...</head><body>" and "</body></html>" tags. A perfect automation job for make, thinks I.
Here's the make file I have at the moment. It works fine to build the final html file in general. The problem is that it doesn't trigger a rebuild when I change html_header.inc or html_footer.inc.
%.html : %.inc
cat "$(MYINC)/html_header.inc" >> $@
cat $< >> $@
cat "$(MYINC)/html_footer.inc" >> $@
%.inc : %.txt
/usr/local/bin/markdown.pl $< > $@
Thanks in advance.