diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-04 19:02:56 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-04 19:02:56 +0200 |
commit | 50a421ac3ad82886afb0916b112ddeac4f9f73dc (patch) | |
tree | c5846ec88364545526f55382405f3b562bef2d4d /gdb | |
parent | 51abb421302bdd86946827727aebc878b5c756e3 (diff) | |
download | gdb-50a421ac3ad82886afb0916b112ddeac4f9f73dc.zip gdb-50a421ac3ad82886afb0916b112ddeac4f9f73dc.tar.gz gdb-50a421ac3ad82886afb0916b112ddeac4f9f73dc.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/Makefile.in | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e5635d8..6eb4936 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 6cd0959..e43a929 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -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". |