The src/ is quite large and has quite poor grouping of rules
/ variables / etc. This makes it increasingly hard to identify all the
rules relating to a particular area of code.

Traditionally one might create's in each sub-directory and
let make recurse into each. Recursive make is quite a bad idea in
general though because it harms parallelization and means that make does
not have a full view of dependencies.

This series thus takes a different approach to modularization which is
to make use of the "include" statement to pull in makefile fragments
from subdirectories.  automake fully expands all "include" statements
when generating the, so we still end up with a single
monolithic file for the eventual build. Aside from ensuring make still
has a full view of dependencies, this also means that all variables are
still in a global namespace.

In doing this split, I've taken the opportunity to santize the variable
declarations into a consistent style. Any variable that is assigned more
than one value now uses line continuations with exactly one value per
line and a trailing $(NULL). It would be nice to enforce this style with
a syntax-check rule but I've not figured this out yet.

This series only moves the virt drivers. So there's obviously a further
series to follow behind this to finish the job for other drivers.

Daniel P. Berrangé (16):
  make: split UML driver build rules into uml/
  make: split PHyp driver build rules into phyp/
  make: split test driver build rules into test/
  make: split ESX driver build rules into esx/
  make: split hyperv driver build rules into hyperv/
  make: split vmware driver build rules into vmware/
  make: split vbox driver build rules into vbox/
  make: split openvz driver build rules into openvz/
  make: split qemu driver build rules into qemu/
  make: split bhyve driver build rules into bhyve/
  make: split xenconfig driver build rules into
  make: split libxl driver build rules into libxl/
  make: split xen driver build rules into xen/
  make: split xenapi driver build rules into xenapi/
  make: split vz driver build rules into vz/
  make: split lxc driver build rules into lxc/

 src/               | 872 +++---------------------------------------
 src/bhyve/     |  73 ++++
 src/esx/       |  90 +++++
 src/hyperv/    |  59 +++
 src/libxl/     | 104 +++++
 src/lxc/       | 207 ++++++++++
 src/openvz/    |  28 ++
 src/phyp/      |  19 +
 src/qemu/      | 148 +++++++
 src/test/      |  26 ++
 src/uml/       |  46 +++
 src/vbox/      |  76 ++++
 src/vmware/    |  27 ++
 src/vz/        |  38 ++
 src/xen/       |  67 ++++
 src/xenapi/    |  28 ++
 src/xenconfig/ |  28 ++
 17 files changed, 1122 insertions(+), 814 deletions(-)
 create mode 100644 src/bhyve/
 create mode 100644 src/esx/
 create mode 100644 src/hyperv/
 create mode 100644 src/libxl/
 create mode 100644 src/lxc/
 create mode 100644 src/openvz/
 create mode 100644 src/phyp/
 create mode 100644 src/qemu/
 create mode 100644 src/test/
 create mode 100644 src/uml/
 create mode 100644 src/vbox/
 create mode 100644 src/vmware/
 create mode 100644 src/vz/
 create mode 100644 src/xen/
 create mode 100644 src/xenapi/
 create mode 100644 src/xenconfig/


libvir-list mailing list

Reply via email to