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