]> git.proxmox.com Git - pve-guest-common.git/blob - Makefile
print snapshot tree: clamp indentation length to positive
[pve-guest-common.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libpve-guest-common-perl
4
5 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
6 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
7
8 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
9
10 all:
11
12 ${BUILDDIR}:
13 rm -rf ${BUILDDIR}
14 cp -a src ${BUILDDIR}
15 cp -a debian ${BUILDDIR}/
16 echo "git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
17
18 .PHONY: deb
19 deb: ${DEB}
20 ${DEB}: ${BUILDDIR}
21 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
22 lintian ${DEB}
23
24 .PHONY: dsc
25 dsc: ${DSC}
26 ${DSC}: ${BUILDDIR}
27 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
28 lintian ${DSC}
29
30 .PHONY: upload
31 upload: ${DEB}
32 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye
33
34 distclean: clean
35
36 clean:
37 rm -rf ${BUILDDIR} *.deb *.dsc *.changes *.buildinfo *.tar.gz
38
39 .PHONY: dinstall
40 dinstall: ${DEB}
41 dpkg -i ${DEB}