This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: What is easiest way to add extra command to Makefile that getsrun *always*?
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: cs at gnumatica dot com
- Cc: automake at gnu dot org
- Date: Thu, 22 May 2003 10:33:05 +0200 (CEST)
- Subject: Re: What is easiest way to add extra command to Makefile that getsrun *always*?
Add a phony target and make all depend on it:
-- BEGIN Makefile.am snippet --
command-to-always-run :
run here
.PHONY : command-to-always-run
all : command-to-always-run
--- END Makefile.am snippet ---
HTH
rlc
On Tue, 20 May 2003 cs@gnumatica.com wrote:
> I want to run an extra command every time someone
> uses a certain Makefile to do "make".
>
> I cannot just add a new target to Makefile.in because
> it won't get built when user does "make all" or just
> "make".
>
> Where add this command so it gets done with every
> "make" command?
>
> Is there some Makefile.am addition I can add?
> Something like a "EXTRA_COMMANDS=" or something?
>
> Chris
>
>
>
>