]> git.proxmox.com Git - pve-guest-common.git/blame_incremental - Makefile
build: add dsc target
[pve-guest-common.git] / Makefile
... / ...
CommitLineData
1PACKAGE=libpve-guest-common-perl
2PKGVER=2.0
3PKGREL=18
4
5DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
7
8DESTDIR=
9
10PERL5DIR=${DESTDIR}/usr/share/perl5
11DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
12
13all:
14
15.PHONY: deb
16deb: ${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
24dsc: ${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
31install: 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
43upload: ${DEB}
44 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
45
46distclean: clean
47
48clean:
49 rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
50
51.PHONY: dinstall
52dinstall: ${DEB}
53 dpkg -i ${DEB}