[CRIU] [PATCH 8/9] nmk: utils.mk -- Add cleanify helper
Dmitry Safonov
dsafonov at virtuozzo.com
Mon Mar 21 05:42:46 PDT 2016
On 03/21/2016 03:12 PM, Cyrill Gorcunov wrote:
> 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>
Reviewed-by: Dmitry Safonov <dsafonov at virtuozzo.com>
> ---
> 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:
--
Regards,
Dmitry Safonov
More information about the CRIU
mailing list