2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

build/nmk: add mrproper-y

This will separate clean process on two parts:
- deleting binaries/objects/temp
- deleting generated files

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Dmitry Safonov
2016-03-18 13:09:32 +03:00
committed by Pavel Emelyanov
parent 46e48dc168
commit 19bd013a1e

View File

@@ -13,6 +13,7 @@ builtin-name :=
lib-name :=
ld_flags :=
cleanup-y :=
mrproper-y :=
MAKECMDGOALS := $(call uniq,$(MAKECMDGOALS))
@@ -170,12 +171,18 @@ objlist:
.PHONY: objlist
#
# Clean everything up.
# Clean most files, but leave enough to navigate with tags (generated files)
clean:
$(call msg-clean, $(obj))
$(Q) $(RM) $(obj)/*.o $(obj)/*.d $(obj)/*.i $(obj)/*.s $(cleanup-y)
.PHONY: clean
#
# Delete all generated files
mrproper: clean
$(Q) $(RM) $(mrproper-y)
.PHONY: mrproper
#
# Footer.
$(__nmk_dir)scripts/build.mk: