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]

Re: 1st action before build


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.

regards,
-- 
Sylvain.


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