public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed] sim: touch modules target
@ 2021-05-08 16:35 Mike Frysinger
  2021-05-08 20:49 ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2021-05-08 16:35 UTC (permalink / raw)
  To: gdb-patches

If there are no updates to the file, touch the result so we don't
keep trying to regenerate it.
---
 sim/common/ChangeLog      | 4 ++++
 sim/common/Make-common.in | 1 +
 2 files changed, 5 insertions(+)

diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 1c0e44f2c1de..4fb31af3b182 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-08  Mike Frysinger  <vapier@gentoo.org>
+
+	* Make-common.in (modules.c): Touch $@ at the end.
+
 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
 
 	* cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 4edc54ca40e0..56b36b235721 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -481,6 +481,7 @@ modules.c: Makefile $(SIM_OBJS:.o=.c)
 	) >$@.tmp
 	$(SHELL) $(srcroot)/move-if-change $@.tmp $@
 	@rm -f $@.l-tmp $@.tmp
+	touch $@
 
 # CGEN support.
 
-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-06-15 21:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 16:35 [PATCH/committed] sim: touch modules target Mike Frysinger
2021-05-08 20:49 ` Tom Tromey
2021-05-09 19:56   ` Mike Frysinger
2021-06-15  0:39   ` [PATCH] sim: switch modules.c & version.c to stamp files Mike Frysinger
2021-06-15 20:08     ` Tom Tromey
2021-06-15 21:01       ` Mike Frysinger
2021-06-15 21:07       ` [PATCH v2] " Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).