[Top][All Lists]

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

Re: 1st action before build

From: Sylvain GIL
Subject: Re: 1st action before build
Date: Sat, 18 Aug 2001 04:04:41 +0200
User-agent: Mutt/1.3.15i

On Fri, Aug 17, 2001 at 08:20:58PM -0600, Tom Tromey wrote:
> Hari> If you need to do something before compiling myprog.o, express
> Hari> that dependency.  For examply, if 'foo.h' is a file that needs
> Hari> to exist before myprog.c can be compiled, use the following line
> Hari> in your Makefile.
> Hari>   myprog.o: foo.h
> This is really the best way.

Yeah and it solved my problem, thanks Raja ;)

> If you want it to come first, before any other target, list it in
> BUILT_SOURCES.  However, using BUILT_SOURCES has a (small) performance
> penalty.

Just for my curiosity, what should I put in BUILT_SOURCES, a custom
target name or only a file name to be built ? The first would be ok but
not the last because I don't want the file to be installed.


reply via email to

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