Jeff Safier wrote:
My question was not in terms of building and executable, but how to
imbed an executable command into the make, that will run when executing
the make. We have a message parser that generates a header file which
is included in the actual source file. I need to make sure our message
compiler runs prior to the aplication building.
You can just make another Makefile target that your C compilation target
depends on, like this:
generatedheader.h:
somecommandtomaketheheaderforme
main.c: generatedheader.h
Simple as that.
--Pat