[CRIU] [PATCH] make: Rebuild objects if headers are changed

Pavel Emelyanov xemul at parallels.com
Mon Apr 2 15:01:37 EDT 2012


On 03/31/2012 01:35 PM, Cyrill Gorcunov wrote:
> At moment no-deps-targets is empty thus changes
> in headers do not cause correspond source files
> to be rebuilt. Fix it.
> 
> Reported-by: Andrey Vagin <avagin at openvz.org>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  Makefile |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 94161f9..40e3249 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -200,6 +200,8 @@ help:
>  	$(E) '      test            - Run zdtm test-suite'
>  .PHONY: help
>  
> -ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),)
> +deps-targets := %.o %.s %.i
> +
> +ifeq ($(filter deps-targets, $(MAKECMDGOALS)),)
>  -include $(DEPS)
>  endif

Applied


More information about the CRIU mailing list