bump version to 7.0-1
[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
ad3ec2bb
TL
20${BUILDDIR}: src debian test
21 rm -rf ${BUILDDIR} ${BUILDDIR}.tmp; mkdir ${BUILDDIR}.tmp
22 cp -a -t ${BUILDDIR}.tmp $^ Makefile
23 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}.tmp/debian/SOURCE
24 mv ${BUILDDIR}.tmp ${BUILDDIR}
b1766d78
FG
25
26.PHONY: deb
27deb: ${DEB}
28${DEB}: ${BUILDDIR}
dbaa6e52 29 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
e143e9d8
DM
30 lintian ${DEB}
31
b1766d78
FG
32.PHONY: dsc
33dsc ${TARGZ}: ${DSC}
34${DSC}: ${BUILDDIR}
35 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
36 lintian ${DSC}
37
82ad3144 38.PHONY: clean distclean
e143e9d8 39distclean: clean
82ad3144 40clean:
83b0b7d1 41 rm -rf *~ *.deb *.changes ${PACKAGE}-*/ *.buildinfo *.dsc *.tar.gz
e143e9d8 42
936218b8
WB
43.PHONY: check
44check:
45 $(MAKE) -C test check
e143e9d8 46
b1766d78
FG
47.PHONY: install
48install:
49 ${MAKE} -C src install
50
e143e9d8
DM
51.PHONY: upload
52upload: ${DEB}
e0e6637a 53 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye