public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Make mostlyclean an alias for clean
@ 2021-04-23  1:58 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2021-04-23  1:58 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=be866656a017ef667a775f89f95b96e36f9738ab

commit be866656a017ef667a775f89f95b96e36f9738ab
Author: Tom Tromey <tom@tromey.com>
Date:   Thu Apr 22 19:51:54 2021 -0600

    Make mostlyclean an alias for clean
    
    I found out by accident that "mostlyclean" in a sim subdir removes all
    the configure artifacts.  The usual rule is:
    
    * If the maintainer built it, maintainer-clean should remove it;
    * If configure built it, distclean should remove it;
    * If make built it, "clean" should remove it;
    * If there is a handy subset of "clean" that is "easy" to rebuild,
      "mostlyclean" should remove it; otherwise mostlyclean should be an
      alias for clean
    
    This patch makes mostlyclean an alias for clean.
    
    sim/common/ChangeLog
    2021-04-22  Tom Tromey  <tom@tromey.com>
    
            * Make-common.in (mostlyclean): Now an alias for clean, not
            distclean.

Diff:
---
 sim/common/ChangeLog      | 5 +++++
 sim/common/Make-common.in | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 119bbdab67f..42b02666d76 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-22  Tom Tromey  <tom@tromey.com>
+
+	* Make-common.in (mostlyclean): Now an alias for clean, not
+	distclean.
+
 2021-04-22  Tom Tromey  <tom@tromey.com>
 
 	* sim-events.c (sim_events_schedule): Use
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 709882469e4..3d3aaf1644e 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -503,7 +503,7 @@ TAGS: force
 	etags --regex '/^\([[:lower:]_]+\) (/\1/' --regex '/^\/[*] TAGS: .*/' \
 		*.[ch] ../common/*.[ch]
 
-clean: $(SIM_EXTRA_CLEAN)
+mostlyclean clean: $(SIM_EXTRA_CLEAN)
 	rm -f *.[oa] *~ core
 	rm -f run$(EXEEXT) libsim.a
 	rm -f gentmap targ-map.c targ-vals.h stamp-tvals
@@ -512,7 +512,7 @@ clean: $(SIM_EXTRA_CLEAN)
 	fi
 	rm -f tmp-mloop.hin tmp-mloop.h tmp-mloop.cin tmp-mloop.c
 
-distclean mostlyclean maintainer-clean realclean: clean $(SIM_EXTRA_DISTCLEAN)
+distclean maintainer-clean realclean: clean $(SIM_EXTRA_DISTCLEAN)
 	rm -f TAGS
 	rm -f Makefile config.cache config.log config.status .gdbinit
 	rm -f config.h stamp-h


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-23  1:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  1:58 [binutils-gdb] Make mostlyclean an alias for clean Tom Tromey

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).