Re: [Qemu-devel] [PATCH v4 1/8] make: move top level dir to end of include search path

2017-02-06 Thread Daniel P. Berrange
On Sat, Feb 04, 2017 at 05:48:01PM +0200, Alberto Garcia wrote: > On Wed, Jan 25, 2017 at 04:14:10PM +, Daniel P. Berrange wrote: > > > One final complication is that the absolute '-I$(BUILD_DIR)/$(@D)' > > will sometimes end up pointing to a non-existant directory if > > that sub-dir does not

Re: [Qemu-devel] [PATCH v4 1/8] make: move top level dir to end of include search path

2017-02-04 Thread Alberto Garcia
On Wed, Jan 25, 2017 at 04:14:10PM +, Daniel P. Berrange wrote: > One final complication is that the absolute '-I$(BUILD_DIR)/$(@D)' > will sometimes end up pointing to a non-existant directory if > that sub-dir does not have any target-independant files to be > built. Rather than try to dynam

Re: [Qemu-devel] [PATCH v4 1/8] make: move top level dir to end of include search path

2017-01-25 Thread Eric Blake
On 01/25/2017 10:14 AM, Daniel P. Berrange wrote: > If there are generated headers files to be used by the migration > code in '$BUILD_DIR/migration', these will not be found by the > relative include, an absolute include is needed instead. This > has not been a problem so far, since nothing has b

[Qemu-devel] [PATCH v4 1/8] make: move top level dir to end of include search path

2017-01-25 Thread Daniel P. Berrange
Currently the search path is 1. source dir corresponding to input file (implicit by compiler) 2. top level build dir 3. top level source dir 4. top level source include/ dir 5. source dir corresponding to input file 6. build dir corresponding to output file Search item 5 is an effecti