Make mostlyclean an alias for clean
authorTom Tromey <tom@tromey.com>
Fri, 23 Apr 2021 01:51:54 +0000 (19:51 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 23 Apr 2021 01:51:54 +0000 (19:51 -0600)
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.

sim/common/ChangeLog
sim/common/Make-common.in

index 119bbdab67f17049c67c5b0329d372d37ae48625..42b02666d76656c0477fdb12fb76a9f82b1d3c97 100644 (file)
@@ -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
index 709882469e41fbc7666c18667fd9769709536f4f..3d3aaf1644eab7f952cd35f3d4b361e933b80204 100644 (file)
@@ -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
This page took 0.028862 seconds and 4 git commands to generate.