Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets
Home

[Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Wed, 17 Mar 2004 14:49:33 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >

Jason Short wrote:

> This allows the ***_gen files to be built in the builddir.  Next we have 
> to use the versions of the files in the builddir over the ones in the 
> srcdir.  To do this we have to change the include directories. 
> Fortunately automake already has a method for including a file from the 
> builddir: by using <> instead of "" for the file name.  This changes the 

  This has nothing to do with automake, it's preprocessor thing. Or am I 
missing something?
  Oh, of course automake is responsible of setting include paths so that 
builddir actually comes before source dir.

> order of the directory search (for instance this is done with 
> <config.h>, which is present in the builddir not the srcdir).

  For config.h, either form would suffice, since it is not present in 
source directory at all; search order does not matter. No?


  - Caz




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