[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: |
Ralf Wildenhues |
Subject: |
Re: How do you add an executable command into automake |
Date: |
Wed, 8 Nov 2006 07:37:00 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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