This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: 1st action before build
- To: Raja R Harinath <harinath at cs dot umn dot edu>
- Subject: Re: 1st action before build
- From: Tom Tromey <tromey at redhat dot com>
- Date: 17 Aug 2001 20:20:58 -0600
- Cc: Sylvain GIL <sylvain dot gil at solsoft dot fr>, automake at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org>
- References: <20010817215239.C10893@enlightened.solsoft.fr> <d94rr673g2.fsf@han.cs.umn.edu>
- Reply-To: tromey at redhat dot com
>>>>> "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