On 26.02.2020 12:33, Anthony PERARD wrote:
> From: Anthony PERARD <anthony.per...@gmail.com>
> 
> Most of the code executed by Rules.mk isn't necessary for the clean
> target, especially not the CFLAGS. This patch makes running make clean
> much faster.
> 
> The patch extract the clean target into a different Makefile,
> Makefile.clean.
> 
> Since Makefile.clean, doesn't want to include Config.mk, we need to
> define the variables DEPS_INCLUDE and DEPS in a place common to
> Rules.mk and Makefile.clean, this is Kbuild.include. DEPS_RM is only
> needed in Makefile.clean so can be defined there.
> 
> Even so Rules.mk includes Config.mk, it includes Kbuild.include after,
> so the effective definition of DEPS_INCLUDE is "xen/" one and the
> same one as used by Makefile.clean.
> 
> This is inspired by Kbuild, with Makefile.clean partially copied from
> Linux v5.4.
> 
> Signed-off-by: Anthony PERARD <anthony.per...@citrix.com>

Reviewed-by: Jan Beulich <jbeul...@suse.com>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to