Some notes for my own, and possibly your, reference:
If you write code that takes an input file and an output file on the command line, you should make it act as a filter taking either - as an input or output file, or just operating in the abscence of these command line arguments. (Obviously some things, I'm thinking cp here, are silly to have as a filter.)
Also if you're using a Makefile for something you shouldn't try to autogenerate whatever the output file name is in your make invoked code. Let make do this since it generally has to anyway to find a target file name.

Leave a comment