Re: [PATCH] examples: Use one top level makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 09, 2016 at 09:20:44PM -0500, Cole Robinson wrote:
Using one Makefile per example subdirectory essentially serializes 'make'
calls. Convert to one example/Makefile that builds and distributes
all the subdir files. This reduces example/ rebuild time from about 5.8
seconds to 1.5 seconds on my machine.

One slight difference is that we no longer ship Makefile.am with the
examples in the rpm. This was virtually useless anyways since the Makefile
was very specific to libvirt infrastructure, so wasn't generically
reusable anyways.

Tested with 'make distcheck' and 'make rpm'

Looks good to me, ACK.

I've never realized that such separation spoils the parallel build.  But
of course it does, since there is onely one process needed for each of
those example directories.  I also thought it has the added benefit of
Makefile per example soit can be shown, but that has no usage at all.

So this is nice, I would just want to know if we could also speed up the
compilation by passing some hints to $(MAKE) so that it knows that using
more than one process for that subdirectory would be wasting.

Martin

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]