[CRIU] [PATCH 8/9] nmk: utils.mk -- Add cleanify helper
Cyrill Gorcunov
gorcunov at openvz.org
Mon Mar 21 05:12:20 PDT 2016
From: Cyrill Gorcunov <gorcunov at gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
scripts/nmk/scripts/utils.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/nmk/scripts/utils.mk b/scripts/nmk/scripts/utils.mk
index afd1770a0c38..01f69d074174 100644
--- a/scripts/nmk/scripts/utils.mk
+++ b/scripts/nmk/scripts/utils.mk
@@ -20,6 +20,9 @@ uniq = $(strip $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),
# Add $(obj)/ for paths that are not relative
objectify = $(foreach o,$(sort $(call uniq,$(1))),$(if $(filter /% ./% ../%,$(o)),$(o),$(obj)/$(o)))
+# To cleanup entries.
+cleanify = $(foreach o,$(sort $(call uniq,$(1))),$(o) $(o:.o=.d) $(o:.o=.i) $(o:.o=.s))
+
#
# Footer.
$(__nmk_dir)scripts/utils.mk:
--
2.5.0
More information about the CRIU
mailing list