From: Konrad Rzeszutek Wilk Date: Wed, 13 Jan 2016 14:19:30 +0000 (-0500) Subject: Makefile: Parallize the cleanup X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=34f85060e1c6ed985d94e5ee4280e2c52a02fc7d;p=xentesttools%2Fbootstrap.git Makefile: Parallize the cleanup Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/Makefile b/Makefile index 738b862..9ed9262 100644 --- a/Makefile +++ b/Makefile @@ -206,21 +206,21 @@ ifeq ($(NOXEN),1) xen_dist: else .PHONY: xen-dist -xen-dist: xen-dist-nodep xen-tools +xen-dist: xen-hypervisor xen-tools endif .PHONY: xen-clean xen-clean: if [ -e xen ]; then \ rm -Rf xen/tools/iommu-remote; \ - $(MAKE) -C xen clean; \ - $(MAKE) -C xen mrproper; \ + $(MAKE) -j$$(($(NCPUS) * 2)) -C xen clean; \ + $(MAKE) -j$$(($(NCPUS) * 2)) -C xen mrproper; \ if [ -e xen/tools/config.h ]; then rm xen/tools/config.h; fi; \ if [ -e xen/tools/firmware/seabios-dir/out/autoconf.h ]; then rm xen/tools/firmware/seabios-dir/out/autoconf.h; fi; \ fi xen-distclean: xen-clean if [ -e xen ]; then \ - $(MAKE) -C xen distclean; \ + $(MAKE) -j$$(($(NCPUS) * 2)) -C xen distclean; \ fi \ @@ -245,12 +245,12 @@ root_image-dist: $(DOM0_DEP_LIST) .PHONY: root_image-clean root_image-clean: if [ -e root_image ];then \ - $(MAKE) -C root_image clean \ + $(MAKE) -j$$(($(NCPUS) * 2)) -C root_image clean \ ;fi root_image-distclean: root_image-clean if [ -e root_image ];then \ - $(MAKE) -C root_image distclean \ + $(MAKE) -j$$(($(NCPUS) * 2)) -C root_image distclean \ ;fi @@ -266,7 +266,7 @@ syslinux-distclean: syslinux-clean .PHONY: syslinux-clean syslinux-clean: if [ -e syslinux ]; then \ - $(MAKE) -C syslinux clean \ + $(MAKE) -j$$(($(NCPUS) * 2)) -C syslinux clean \ ;fi .PHONY: syslinux