bump version to 6.3-2
[pve-common.git] / Makefile
CommitLineData
8a27e4a4 1include /usr/share/dpkg/pkg-info.mk
e143e9d8
DM
2
3PACKAGE=libpve-common-perl
4
e143e9d8 5ARCH=all
b98a06a3 6
8a27e4a4 7BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
dbaa6e52 8
8a27e4a4
TL
9DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb
10DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
11TARGZ=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.tar.gz
e143e9d8 12
b1766d78
FG
13all:
14 ${MAKE} -C src
e143e9d8
DM
15
16.PHONY: dinstall
17dinstall: deb
18 dpkg -i ${DEB}
19
b1766d78 20${BUILDDIR}: src debian
dbaa6e52 21 rm -rf ${BUILDDIR}
b1766d78 22 rsync -a * ${BUILDDIR}
c11de017 23 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE
b1766d78
FG
24
25.PHONY: deb
26deb: ${DEB}
27${DEB}: ${BUILDDIR}
dbaa6e52 28 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
e143e9d8
DM
29 lintian ${DEB}
30
b1766d78
FG
31.PHONY: dsc
32dsc ${TARGZ}: ${DSC}
33${DSC}: ${BUILDDIR}
34 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
35 lintian ${DSC}
36
82ad3144 37.PHONY: clean distclean
e143e9d8 38distclean: clean
82ad3144 39clean:
83b0b7d1 40 rm -rf *~ *.deb *.changes ${PACKAGE}-*/ *.buildinfo *.dsc *.tar.gz
e143e9d8 41
936218b8
WB
42.PHONY: check
43check:
44 $(MAKE) -C test check
e143e9d8 45
b1766d78
FG
46.PHONY: install
47install:
48 ${MAKE} -C src install
49
e143e9d8
DM
50.PHONY: upload
51upload: ${DEB}
4d7b1156 52 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster