[CRIU] [PATCH] make: fix navigation in vim
Pavel Emelyanov
xemul at parallels.com
Mon Dec 3 05:53:48 EST 2012
On 12/03/2012 02:44 PM, Kinsbursky Stanislav wrote:
> 03.12.2012 14:37, Pavel Emelyanov пишет:
>> On 12/03/2012 02:29 PM, Kinsbursky Stanislav wrote:
>>> 03.12.2012 14:08, Pavel Emelyanov пишет:
>>>> On 12/03/2012 02:02 PM, Andrey Vagin wrote:
>>>>> If you have an error in parasite.c and execute make from vim,
>>>>> without this patch vim opens a new file parasite.c in a root directory.
>>>>>
>>>>> With this patch vim opens pie/parasite.c.
>>>> Kernel "make" doesn't print directory either.
>>>> Can we make it look like in kernel instead?
>>> Short answer is "yes".
>>> The long one is that it's not that simple.
>>> All kernel objects are build in root directory.
>>> I.e. you can build any target like this:
>>>
>>> # make fs/nfsd/nfs4idmap.o
>>> <snip>
>>> CC [M] fs/nfsd/nfs4idmap.o
>>>
>>> But you can't do it like this:
>>>
>>> # cd fs/nfsd/
>>> # make nfs4idmap.o
>>> <a lot of errors>
>> I don't want to do it like this. Do you?
>
> Neither do I.
> I just wanted to illustrate, how it works (in general - details are still not clear to me). All kernel files a build from root. I.e. without switching working
> directory. This means, that all build rules are in main Makefile (rules can't be exported). This means, that all nested Makefiles contains only objects to
> build. And this, in turn, means more significant changes to all makefiles.
I see. OK, I apply this patch for now.
More information about the CRIU
mailing list