aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1992-12-25 01:31:54 +0000
committerDavid D. Zuhn <zoo@cygnus>1992-12-25 01:31:54 +0000
commit7fed4078888f716218e1a2836ce1061242463e35 (patch)
tree75dd322b6b67fc284627d2249b997f516fb1db28
parent83a476789119fb0423c687f3b608cdc25d403a79 (diff)
downloadgdb-7fed4078888f716218e1a2836ce1061242463e35.zip
gdb-7fed4078888f716218e1a2836ce1061242463e35.tar.gz
gdb-7fed4078888f716218e1a2836ce1061242463e35.tar.bz2
better clean handling
-rw-r--r--Makefile.in23
1 files changed, 7 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in
index bd73a93..b89962c 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
+.PHONY: all check dvi info install-info
.NOEXPORT:
info check dvi:
@@ -263,25 +263,16 @@ all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
.PHONY: clean distclean mostlyclean realclean do_clean
do_clean:
- -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
+ -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
-mostlyclean: do_clean
+clean 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
-
-distclean: do_clean
- @rootme=`pwd` ; export rootme ; \
- $(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do
- -rm -rf Makefile config.status
+ $(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
-realclean: do_clean
+distclean realclean: do_clean
@rootme=`pwd` ; export rootme ; \
- $(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do
- -rm -rf Makefile config.status
+ $(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
+ -rm -f Makefile config.status
uninstall:
@echo "the uninstall target is not supported in this tree"