Formerly ../Rules.~36~
authorroland <roland>
Thu, 27 Jan 1994 02:31:56 +0000 (02:31 +0000)
committerroland <roland>
Thu, 27 Jan 1994 02:31:56 +0000 (02:31 +0000)
Rules

diff --git a/Rules b/Rules
index ba81e9a..ae2b620 100644 (file)
--- a/Rules
+++ b/Rules
@@ -101,21 +101,15 @@ endif
 export others := $(others)
 export tests := $(tests)
 \f
-# This removes everything that can be regenerated
-# except for the object files and the object-file library members.
-.PHONY: mostlyclean
-mostlyclean:
-       -rm -f $(addprefix $(objpfx),$(tests) $(others) \
-                                    $(addsuffix .o,$(tests) $(others)))
-       -rm -f core TAGS $(objpfx)depend-$(subdir)
-
-# This removes absolutely everything that can be regenerated.
-.PHONY: subdir_clean clean realclean
-subdir_clean realclean: clean
-clean: mostlyclean
-       -rm -f $(objects) $(addprefix $(objpfx),$(extra-objs)) \
-              $(+depfiles) $(generated)
-\f
+.PHONY: distclean realclean subdir_distclean subdir_realclean \
+       subdir_clean subdir_mostlyclean
+subdir_mostlyclean: mostlyclean
+subdir_clean: clean
+subdir_distclean: distclean
+subdir_realclean: realclean
+realclean: distclean
+distclean: clean
+
 .PHONY: subdir_echo-headers
 subdir_echo-headers: echo-headers