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

Martin Kletzander mkletzan at redhat.com
Sun Jan 10 10:37:24 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160110/54a193f0/attachment-0001.sig>


More information about the libvir-list mailing list