gdbserver Makefile: don't delete intermediary files
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 4 Sep 2017 17:02:56 +0000 (19:02 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 4 Sep 2017 17:02:56 +0000 (19:02 +0200)
commit50a421ac3ad82886afb0916b112ddeac4f9f73dc
treec5846ec88364545526f55382405f3b562bef2d4d
parent51abb421302bdd86946827727aebc878b5c756e3
gdbserver Makefile: don't delete intermediary files

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.  To avoid this, we can add the .SECONDARY special target.  If
it has no pre-requisites, all intermediary files will be kept.

gdb/gdbserver/ChangeLog:

* Makefile.in (.SECONDARY): Define target.
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in