automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is easiest way to add extra command to Makefile that gets run *


From: Ronald Landheer-Cieslak
Subject: Re: What is easiest way to add extra command to Makefile that gets run *always*?
Date: Thu, 22 May 2003 10:33:05 +0200 (CEST)

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 address@hidden 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
> 
> 
> 
> 





reply via email to

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