Commit f5ccecbd authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

Makefile: reorg top-level clean/mrproper

Mostly this is done in order to not repeat the recursive clean
lines twice.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent c30a793b
...@@ -244,13 +244,7 @@ lib: criu ...@@ -244,13 +244,7 @@ lib: criu
$(Q) $(MAKE) $(build)=lib all $(Q) $(MAKE) $(build)=lib all
.PHONY: lib .PHONY: lib
subclean: clean mrproper:
$(Q) $(MAKE) -C Documentation clean
$(Q) $(MAKE) $(build)=test/compel clean
$(Q) $(RM) .gitid
.PHONY: subclean
clean: subclean
$(Q) $(MAKE) $(build)=images $@ $(Q) $(MAKE) $(build)=images $@
$(Q) $(MAKE) $(build)=criu $@ $(Q) $(MAKE) $(build)=criu $@
$(Q) $(MAKE) $(build)=soccr $@ $(Q) $(MAKE) $(build)=soccr $@
...@@ -258,17 +252,17 @@ clean: subclean ...@@ -258,17 +252,17 @@ clean: subclean
$(Q) $(MAKE) $(build)=compel $@ $(Q) $(MAKE) $(build)=compel $@
$(Q) $(MAKE) $(build)=compel/plugins $@ $(Q) $(MAKE) $(build)=compel/plugins $@
$(Q) $(MAKE) $(build)=lib $@ $(Q) $(MAKE) $(build)=lib $@
.PHONY: clean .PHONY: clean mrproper
# mrproper depends on clean in nmk clean-top:
mrproper: subclean $(Q) $(MAKE) -C Documentation clean
$(Q) $(MAKE) $(build)=images $@ $(Q) $(MAKE) $(build)=test/compel clean
$(Q) $(MAKE) $(build)=criu $@ $(Q) $(RM) .gitid
$(Q) $(MAKE) $(build)=soccr $@ .PHONY: clean-top
$(Q) $(MAKE) $(build)=lib $@
$(Q) $(MAKE) $(build)=compel $@ clean: clean-top
$(Q) $(MAKE) $(build)=compel/plugins $@
$(Q) $(MAKE) $(build)=lib $@ mrproper-top: clean-top
$(Q) $(RM) $(CONFIG_HEADER) $(Q) $(RM) $(CONFIG_HEADER)
$(Q) $(RM) $(SOCCR_CONFIG) $(Q) $(RM) $(SOCCR_CONFIG)
$(Q) $(RM) $(VERSION_HEADER) $(Q) $(RM) $(VERSION_HEADER)
...@@ -277,7 +271,9 @@ mrproper: subclean ...@@ -277,7 +271,9 @@ mrproper: subclean
$(Q) $(RM) compel/include/asm $(Q) $(RM) compel/include/asm
$(Q) $(RM) cscope.* $(Q) $(RM) cscope.*
$(Q) $(RM) tags TAGS $(Q) $(RM) tags TAGS
.PHONY: mrproper .PHONY: mrproper-top
mrproper: mrproper-top
# #
# Non-CRIU stuff. # Non-CRIU stuff.
......
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