]> git.proxmox.com Git - pve-guest-common.git/blobdiff - Makefile
d/control: bump version dependency of libpve-storage-perl
[pve-guest-common.git] / Makefile
index d0a862f9ef3eb73ff87b0ef686cfff08515a5d17..6bdfb6daf2bae8788eb3956fe0864138a6bf8701 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
 PACKAGE=libpve-guest-common-perl
-PKGVER=2.0
-PKGREL=2
+PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
+PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
 
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
 
 DESTDIR=
 
@@ -19,10 +20,22 @@ ${DEB}:
        cd build; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}:
+       rm -rf build
+       rsync -a * build
+       cd build; dpkg-buildpackage -S -us -uc -d -nc
+       lintian ${DSC}
+
 install: PVE
        install -d ${PERL5DIR}/PVE
+       install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
        install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
        install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
+       install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
+       install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/
+       install -m 0644 PVE/Replication.pm ${PERL5DIR}/PVE/
        install -d ${PERL5DIR}/PVE/VZDump
        install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
 
@@ -33,7 +46,7 @@ upload: ${DEB}
 distclean: clean
 
 clean:
-       rm -rf ./build *.deb *.changes
+       rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
 
 .PHONY: dinstall
 dinstall: ${DEB}