This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> 
> 
> 
> 




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]