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


>>>>> "Hari" == Raja R Harinath <harinath@cs.umn.edu> writes:

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

Tom


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