On Mon, Mar 07, 2005 at 10:50:38AM +1100, Ian Su wrote: > I would like to get automake to install some .h files in > $(top_srcdir)/include prior to compiling the objects for my > project. However, there doesn't appear to be any way to do this > elegantly. If I add the rules to all-local, it gets executed after > everything is compiled, does anyone know how to get anything > executed before?
A priori this sounds like the wrong way to do things. You can specify as many -I flags to the compiler as you want to bring in your headers. Copying them around the build tree sounds like a bad idea because they're sure to end up out of sync somehow. If you absolutely have to copy for some obscure reason you need to setup your targets correctly; your program should depend on your header and your header target should do whatever copying is required. -i
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
