[pve-devel] [PATCH qemu-server 1/8] refactor Makefile for PVE/QemuServer/ directory

Dominik Csapak d.csapak at proxmox.com
Thu Jun 7 13:16:50 CEST 2018


this makes it easier to add new files there

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/QemuServer/Makefile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/PVE/QemuServer/Makefile b/PVE/QemuServer/Makefile
index 1aecc61..0d78324 100644
--- a/PVE/QemuServer/Makefile
+++ b/PVE/QemuServer/Makefile
@@ -1,8 +1,10 @@
+SOURCES=PCI.pm		\
+	USB.pm		\
+	Memory.pm	\
+	ImportDisk.pm	\
+	OVF.pm		\
+	Cloudinit.pm	\
+
 .PHONY: install
-install:
-	install -D -m 0644 PCI.pm ${DESTDIR}${PERLDIR}/PVE/QemuServer/PCI.pm
-	install -D -m 0644 USB.pm ${DESTDIR}${PERLDIR}/PVE/QemuServer/USB.pm
-	install -D -m 0644 Memory.pm ${DESTDIR}${PERLDIR}/PVE/QemuServer/Memory.pm
-	install -D -m 0644 ImportDisk.pm ${DESTDIR}${PERLDIR}/PVE/QemuServer/ImportDisk.pm
-	install -D -m 0644 OVF.pm ${DESTDIR}${PERLDIR}/PVE/QemuServer/OVF.pm
-	install -D -m 0644 Cloudinit.pm ${DESTDIR}${PERLDIR}/PVE/QemuServer/Cloudinit.pm
+install: ${SOURCES}
+	for i in ${SOURCES}; do install -D -m 0644 $$i ${DESTDIR}${PERLDIR}/PVE/QemuServer/$$i; done
-- 
2.11.0




More information about the pve-devel mailing list