]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: Parallize the cleanup
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 13 Jan 2016 14:19:30 +0000 (09:19 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 13 Jan 2016 14:19:30 +0000 (09:19 -0500)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Makefile

index 738b862a0eda0a50a47978da1b5387fa658bf86d..9ed92620072a23e7f2f880bbb06811f78dd3ecee 100644 (file)
--- 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