diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-22 19:51:54 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-22 19:51:54 -0600 |
commit | be866656a017ef667a775f89f95b96e36f9738ab (patch) | |
tree | f2ef06535c8694656c7a8cd55e41a17c4ff3ea2e /sim/common/Make-common.in | |
parent | dbc0e7ce6537812b0fafb4865520a1d35b1931dc (diff) | |
download | gdb-be866656a017ef667a775f89f95b96e36f9738ab.zip gdb-be866656a017ef667a775f89f95b96e36f9738ab.tar.gz gdb-be866656a017ef667a775f89f95b96e36f9738ab.tar.bz2 |
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.
Diffstat (limited to 'sim/common/Make-common.in')
-rw-r--r-- | sim/common/Make-common.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 7098824..3d3aaf1 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 |