bump version to 7.0-14
[pve-common.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=libpve-common-perl
4
5ARCH=all
6
7BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
8
9DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb
10DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
11TARGZ=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.tar.gz
12
13all:
14 ${MAKE} -C src
15
16.PHONY: dinstall
17dinstall: deb
18 dpkg -i ${DEB}
19
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}
25
26.PHONY: deb
27deb: ${DEB}
28${DEB}: ${BUILDDIR}
29 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
30 lintian ${DEB}
31
32.PHONY: dsc
33dsc ${TARGZ}: ${DSC}
34${DSC}: ${BUILDDIR}
35 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
36 lintian ${DSC}
37
38.PHONY: clean distclean
39distclean: clean
40clean:
41 rm -rf *~ *.deb *.changes ${PACKAGE}-*/ *.buildinfo *.dsc *.tar.gz
42
43.PHONY: check
44check:
45 $(MAKE) -C test check
46
47.PHONY: install
48install:
49 ${MAKE} -C src install
50
51.PHONY: upload
52upload: ${DEB}
53 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye