[CRIU] [PATCH 2/2] test/Makefile: use the override directive

Christopher Covington cov at codeaurora.org
Thu Apr 30 10:52:42 PDT 2015


Hi Andrew,

On 04/30/2015 12:17 PM, Andrew Vagin wrote:
> It looks better
> 
> Signed-off-by: Andrew Vagin <avagin at openvz.org>
> ---
>  test/Makefile | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/test/Makefile b/test/Makefile
> index e9b9562..844bf7c 100644
> --- a/test/Makefile
> +++ b/test/Makefile
> @@ -30,13 +30,17 @@ zdtm: zdtm-tst-list .FORCE
>  	$(MAKE) -f Makefile.zdtm zdtm_ns_user
>  
>  zdtm-pre-dump: zdtm-tst-list
> -	ZDTM_ARGS="-P -p -i 3 -C" $(MAKE) -f Makefile.zdtm ns/static/pipe00
> +	$(MAKE) -f Makefile.zdtm ns/static/pipe00
>  
>  zdtm-snapshot: zdtm-tst-list
> -	ZDTM_ARGS="-s -i 3 -C" $(MAKE) -f Makefile.zdtm ns/static/pipe00
> +	$(MAKE) -f Makefile.zdtm ns/static/pipe00
>  
>  zdtm-iter: zdtm-tst-list
> -	ZDTM_ARGS="-i 3 -C" $(MAKE) -f Makefile.zdtm ns/static/pipe00
> +	$(MAKE) -f Makefile.zdtm ns/static/pipe00
> +
> +zdtm-pre-dump: override ZDTM_ARGS=-P -p -i 3 -C
> +zdtm-snapshot: override ZDTM_ARGS=-s -i 3 -C
> +zdtm-iter: override ZDTM_ARGS=-i 3 -C

I find this more difficult to follow. What about something like:

    Z="-P -p -i 3 -C"
    $(MAKE) -f Makefile.zdtm ns/static/pipe00 ZDTM_ARGS=$(Z)

Chris

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list