Commit 3f544ae2 authored by Linus Torvalds's avatar Linus Torvalds

Fix "make mrproper" that broke when the files pattern matched

a directory pattern. Clean directories _first_, then files.
parent 84f3e087
...@@ -732,8 +732,8 @@ mrproper: clean archmrproper ...@@ -732,8 +732,8 @@ mrproper: clean archmrproper
@find . $(RCS_FIND_IGNORE) \ @find . $(RCS_FIND_IGNORE) \
\( -name .depend -o -name .\*.cmd \) \ \( -name .depend -o -name .\*.cmd \) \
-type f -print | xargs rm -f -type f -print | xargs rm -f
@rm -f $(MRPROPER_FILES)
@rm -rf $(MRPROPER_DIRS) @rm -rf $(MRPROPER_DIRS)
@rm -f $(MRPROPER_FILES)
@$(MAKE) -C scripts mrproper @$(MAKE) -C scripts mrproper
@$(MAKE) -f Documentation/DocBook/Makefile mrproper @$(MAKE) -f Documentation/DocBook/Makefile mrproper
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment