]> git.proxmox.com Git - pve-guest-common.git/blob - Makefile
d/control: wrap-and-sort
[pve-guest-common.git] / Makefile
1 PACKAGE=libpve-guest-common-perl
2 PKGVER=2.0
3 PKGREL=18
4
5 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6 DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
7
8 DESTDIR=
9
10 PERL5DIR=${DESTDIR}/usr/share/perl5
11 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
12
13 all:
14
15 .PHONY: deb
16 deb: ${DEB}
17 ${DEB}:
18 rm -rf build
19 rsync -a * build
20 cd build; dpkg-buildpackage -b -us -uc
21 lintian ${DEB}
22
23 .PHONY: dsc
24 dsc: ${DSC}
25 ${DSC}:
26 rm -rf build
27 rsync -a * build
28 cd build; dpkg-buildpackage -S -us -uc -d -nc
29 lintian ${DSC}
30
31 install: PVE
32 install -d ${PERL5DIR}/PVE
33 install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
34 install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
35 install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
36 install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
37 install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/
38 install -m 0644 PVE/Replication.pm ${PERL5DIR}/PVE/
39 install -d ${PERL5DIR}/PVE/VZDump
40 install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
41
42 .PHONY: upload
43 upload: ${DEB}
44 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
45
46 distclean: clean
47
48 clean:
49 rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
50
51 .PHONY: dinstall
52 dinstall: ${DEB}
53 dpkg -i ${DEB}