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.
This commit is contained in:
Simon Marchi 2017-09-04 19:02:56 +02:00
parent 51abb42130
commit 50a421ac3a
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
* Makefile.in (.SECONDARY): Define target.
2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
* linux-low.c (linux_wait_1): Adjust.

View File

@ -632,4 +632,7 @@ endif
# Disable implicit make rules.
include $(srcdir)/../disable-implicit-rules.mk
# Do not delete intermediate files (e.g. *-generated.c).
.SECONDARY:
# This is the end of "Makefile.in".