aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-12-24 20:42:13 +0000
committerPer Bothner <per@bothner.com>1992-12-24 20:42:13 +0000
commit3b30df82b672ebc3c7f3d21e9fb81b0b129cd803 (patch)
treec3dff4b7a5b03b11b03e2c09cfa11c2e4a850896
parentd73d72c77c62bc2dfc4f51b7549a3a1834da6122 (diff)
downloadgdb-3b30df82b672ebc3c7f3d21e9fb81b0b129cd803.zip
gdb-3b30df82b672ebc3c7f3d21e9fb81b0b129cd803.tar.gz
gdb-3b30df82b672ebc3c7f3d21e9fb81b0b129cd803.tar.bz2
* Makefile.in (mostlyclean, distclean, realclean): Fix to
do more-or-less the right thing.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in25
2 files changed, 26 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b79bda..b770006 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec 24 12:40:21 1992 Per Bothner (bothner@rtl.cygnus.com)
+
+ * Makefile.in (mostlyclean, distclean, realclean): Fix to
+ do more-or-less the right thing.
+
Wed Dec 16 10:25:31 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in: Add lines defining CC and CXX, and use CXX rather
diff --git a/Makefile.in b/Makefile.in
index 879e71a..f47c6a9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -225,7 +225,7 @@ TARGET_FLAGS_TO_PASS = \
# The first rule in the file had better be this one. Don't put any above it.
all: $(ALL)
-.PHONY: all info install-info dvi clean-info distclean mostlyclean realclean
+.PHONY: all info install-info dvi clean-info
.NOEXPORT:
info check clean-info dvi distclean mostlyclean realclean:
@@ -260,11 +260,28 @@ all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
all-opcodes all-z8ksim all-bfd all-readline all-gdb all-binutils all-gcc \
all-newlib all-deja-gnu
-.PHONY: clean
-clean:
+.PHONY: clean distclean mostlyclean realclean do_clean
+
+do_clean:
+ -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
+
+mostlyclean: do_clean
+ @rootme=`pwd` ; export rootme ; \
+ $(MAKE) $(FLAGS_TO_PASS) DO=mostlyclean "DODIRS=$(SUBDIRS)" subdir_do
+
+clean: do_clean
@rootme=`pwd` ; export rootme ; \
$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do
- -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
+
+distclean: do_clean
+ @rootme=`pwd` ; export rootme ; \
+ $(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do
+ -rm -rf Makefile config.status
+
+realclean: do_clean
+ @rootme=`pwd` ; export rootme ; \
+ $(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do
+ -rm -rf Makefile config.status
uninstall:
@echo "the uninstall target is not supported in this tree"