Commit b10f0611 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Adapt mrproper targets

Use $(call descend,..) for mrproper as well.
parent 09384ba9
......@@ -154,7 +154,6 @@ LOG := $(patsubst %.sgml, %.log, $(BOOKS))
OUT := $(patsubst %.sgml, %.out, $(BOOKS))
clean:
@echo 'Cleaning up (DocBook)'
@rm -f core *~
@rm -f $(BOOKS)
@rm -f $(DVI) $(AUX) $(TEX) $(LOG) $(OUT)
......@@ -162,7 +161,6 @@ clean:
@rm -f $(C-procfs-example)
mrproper:
@echo 'Making mrproper (DocBook)'
@rm -f $(PS) $(PDF)
@rm -f -r $(HTML) $(patsubst %.html,%,$(HTML))
......
......@@ -712,7 +712,7 @@ clean: archclean
-name .\*.tmp -o -name .\*.d \) -type f -print \
| grep -v lxdialog/ | xargs rm -f
@rm -f $(CLEAN_FILES)
@$(MAKE) -f Documentation/DocBook/Makefile clean
@$(call descend,Documentation/DocBook,clean)
mrproper: clean archmrproper
@echo 'Making mrproper'
......@@ -722,7 +722,7 @@ mrproper: clean archmrproper
@rm -rf $(MRPROPER_DIRS)
@rm -f $(MRPROPER_FILES)
@$(call descend,scripts,mrproper)
@$(MAKE) -f Documentation/DocBook/Makefile mrproper
@$(call descend,Documentation/DocBook,mrproper)
distclean: mrproper
@echo 'Making distclean'
......@@ -809,7 +809,7 @@ help:
# Documentation targets
# ---------------------------------------------------------------------------
sgmldocs psdocs pdfdocs htmldocs: scripts
@$(MAKE) -f Documentation/DocBook/Makefile $@
@$(call descend,Documentation/DocBook,$@)
# Scripts to check various things for consistency
# ---------------------------------------------------------------------------
......
......@@ -58,8 +58,6 @@ $(obj)/split-include $(obj)/docproc $(addprefix $(obj)/,$(tkparse-objs)) \
$(obj)/conmakehash lxdialog: $(obj)/fixdep
mrproper:
@echo 'Making mrproper (scripts)'
@rm -f $(tkparse-objs) $(obj)/kconfig.tk
@rm -f core $(host-progs)
@$(MAKE) -C lxdialog mrproper
@rm -f $(addprefix $(obj)/,$(tkparse-objs) $(obj)/kconfig.tk core $(host-progs))
@$(call descend,scripts/lxdialog,mrproper)
......@@ -44,4 +44,4 @@ ncurses:
fi
mrproper:
@rm -f core $(host-progs) $(lxdialog-objs) ncurses
@rm -f $(addprefix $(obj)/,core $(host-progs) $(lxdialog-objs) ncurses)
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