summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-01-27 02:19:17 +0000
committerRoland McGrath <roland@gnu.org>1994-01-27 02:19:17 +0000
commitcb615002f43abb854287db63eaa0bd28654de79c (patch)
tree40ce7b4defc88cb78ea9ce802007b6729f730538 /Makerules
parent6b66c87ff8984fb1f10204da234cef6807580169 (diff)
Formerly Makerules.~111~
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index d9b967cf89..08ae5772d1 100644
--- a/Makerules
+++ b/Makerules
@@ -457,6 +457,24 @@ echo-headers:
@echo $(headers)
+# Common cleaning targets.
+
+.PHONY: common-mostlyclean common-clean mostlyclean clean
+clean: common-clean
+mostlyclean: common-mostlyclean
+
+# Remove the object files.
+common-mostlyclean:
+ -rm -f $(addprefix $(objpfx),$(tests) $(others) \
+ $(addsuffix .o,$(tests) $(others)))
+ -rm -f $(objects) $(addprefix $(objpfx),$(extra-objs))
+ -rm -f core TAGS
+
+# Also remove the dependencies and generated source files.
+common-clean: common-mostlyclean
+ -rm -f $(objpfx)depend-$(subdir) $(+depfiles)
+ -rm -f $(generated)
+
# Produce a file `stub-$(subdir)' which contains `#define __stub_FUNCTION'
# for each function which is a stub. We grovel over all the .dep files
# looking for references to source files in sysdeps/stub. Then we grovel