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: Jeff Safier
Subject: RE: How do you add an executable command into automake
Date: Wed, 8 Nov 2006 10:00:45 -0500

I was unclear

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.


-----Original Message-----
From: Ralf Wildenhues [mailto:address@hidden 
Sent: Wednesday, November 08, 2006 1:37 AM
To: Jeff Safier
Cc: address@hidden
Subject: Re: How do you add an executable command into automake

Hello Jeff,

* Jeff Safier wrote on Wed, Nov 08, 2006 at 04:17:29AM CET:
> I would like to add an executabvle command to my make file.  Is this 
> done thru the configure.in or the Makefile.am.
> An example would be a post build cmmand like a copy or a message 
> compiler.

I'm afraid I don't understand your question fully.
You would like to build an executable?  If yes, then something like
  bin_PROGRAMS = foo

in Makefile.am helps (don't forget to specify foo_SOURCES).

If you need to execute 'foo' after building it, you can do so in an
'all-local' makefile rule you supply (it's a good idea to have the rule
depend on 'foo$(EXEEXT)' in that case).

If you want to execute some command after building, installing, or
similar, the '*-local' or '*-hook' rules may be what you're after:
http://sources.redhat.com/automake/automake.html#Extending 

Otherwise please describe in more detail ("when I do this it should do
that") what you need.

Cheers,
Ralf




reply via email to

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