qemu-server/PVE/QemuServer/Makefile
Fabian Ebner e0fd2b2f84 Create Drive.pm and move drive-related code there
The initialization for the drive keys in $confdesc is changed
to be a single for-loop iterating over the keys of $drivedesc_hash and
the initialization of the unusedN keys is move to directly below it.

To avoid the need to change all the call sites, functions with more than
a few callers are exported from the submodule and imported into QemuServer.pm.

For callers of the now imported functions within QemuServer.pm, the prefix
PVE::QemuServer is dropped, because it is unnecessary and now even confusing.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2020-03-07 18:23:57 +01:00

17 lines
299 B
Makefile

SOURCES=PCI.pm \
USB.pm \
Memory.pm \
ImportDisk.pm \
OVF.pm \
Cloudinit.pm \
Agent.pm \
Helpers.pm \
Monitor.pm \
Machine.pm \
CPUConfig.pm \
Drive.pm \
.PHONY: install
install: ${SOURCES}
for i in ${SOURCES}; do install -D -m 0644 $$i ${DESTDIR}${PERLDIR}/PVE/QemuServer/$$i; done