[PATCH] gdbserver Makefile: don't delete intermediary files
Simon Marchi
simon.marchi@polymtl.ca
Mon Sep 4 17:06:00 GMT 2017
On 2017-09-04 13:34, Pedro Alves wrote:
> On 09/03/2017 09:51 AM, Simon Marchi wrote:
>> If you "make" from scratch in gdbserver/, you'll notice that make
>> deletes the files it considers as intermediary at the end:
>>
>> $ make clean && make
>> ...
>> rm i386-mmx-linux-generated.c x32-avx-avx512-linux-generated.c ...
>>
>> Then, if you type make again, make will rebuild these files and
>> rebuild
>> gdbserver.
>
> Ah, this has been annoying me for a while.
>
>> To avoid this, we can add the .SECONDARY special target. If
>> it has no pre-requisites, all intermediary files will be kept.
>>
>> gdb/gdbservef/ChangeLog:
>
> Typo "gdbservef".
Oops.
>>
>> * Makefile.in (.SECONDARY): Define target.
>
> LGTM.
Thanks, pushed.
Simon
More information about the Gdb-patches
mailing list