aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-04-22 19:51:54 -0600
committerTom Tromey <tom@tromey.com>2021-04-22 19:51:54 -0600
commit06a84ea38441057e287ea4c89fe44ee51478e065 (patch)
tree3a4fbff94c524dafc9291da019a60e1898c014b8 /sim/ppc
parentb396d3a16efd205e4adceec4fe39153a1196a15a (diff)
downloadgdb-06a84ea38441057e287ea4c89fe44ee51478e065.zip
gdb-06a84ea38441057e287ea4c89fe44ee51478e065.tar.gz
gdb-06a84ea38441057e287ea4c89fe44ee51478e065.tar.bz2
Add stamp files for generated files in sim/ppc
This changes the sim/ppc Makefile to use the stamp file idiom for a couple of generated files, avoiding extra rebuilds. sim/ppc/ChangeLog 2021-04-22 Tom Tromey <tom@tromey.com> * Makefile.in (stamp-vals, stamp-map): New targets. (targ-vals.h, targ-map.c): Update. (clean): Remove files.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/ChangeLog6
-rw-r--r--sim/ppc/Makefile.in9
2 files changed, 13 insertions, 2 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 269411e..340a6d4 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-22 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (stamp-vals, stamp-map): New targets.
+ (targ-vals.h, targ-map.c): Update.
+ (clean): Remove files.
+
2021-04-08 Tom Tromey <tom@tromey.com>
* emul_unix.c: Include time.h.
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index d9d0198..7686937 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -635,15 +635,19 @@ targ-vals.def: $(srcdir)/../common/nltvals.def
cat $(srcdir)/../common/nltvals.def > tmp-vals.def
$(SHELL) $(srcdir)/../../move-if-change tmp-vals.def targ-vals.def
-targ-vals.h: Makefile gentmap $(srcdir)/../../move-if-change
+targ-vals.h: stamp-vals ; @true
+stamp-vals: Makefile gentmap $(srcdir)/../../move-if-change
rm -f tmp-vals.h
./gentmap -h > tmp-vals.h
$(SHELL) $(srcdir)/../../move-if-change tmp-vals.h targ-vals.h
+ @echo stamp > stamp-vals
-targ-map.c: Makefile gentmap $(srcdir)/../../move-if-change
+targ-map.c: stamp-map; @true
+stamp-map: Makefile gentmap $(srcdir)/../../move-if-change
rm -f tmp-map.c
./gentmap -c > tmp-map.c
$(SHELL) $(srcdir)/../../move-if-change tmp-map.c targ-map.c
+ @echo stamp > stamp-map
callback.o: $(srcdir)/../common/callback.c $(TARG_VALS_H) $(CONFIG_H)
$(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/callback.c
@@ -871,6 +875,7 @@ TAGS: $(BUILT_SRC)
clean mostlyclean:
rm -f tmp-* *.[oasi] core psim$(EXEEXT) run$(EXEEXT) igen dgen $(BUILT_SRC_WO_CONFIG) gentmap
+ rm -f stamp-vals targ-vals.h stamp-map targ-map.c
distclean realclean: clean
rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log