automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you add an executable command into automake


From: Pat Suwalski
Subject: Re: How do you add an executable command into automake
Date: Wed, 8 Nov 2006 10:13:12 -0500
User-agent: Icedove 1.5.0.7 (X11/20061014)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]