[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How do you add an executable command into automake
From: |
Jeff Safier |
Subject: |
RE: How do you add an executable command into automake |
Date: |
Wed, 8 Nov 2006 10:20:58 -0500 |
Yes I understand this, but how do I do it using automake or how do I
imbed this within my Makefile.am
-----Original Message-----
From: Pat Suwalski [mailto:address@hidden
Sent: Wednesday, November 08, 2006 10:13 AM
To: Jeff Safier
Cc: address@hidden
Subject: Re: How do you add an executable command into automake
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