]> git.proxmox.com Git - pve-cluster.git/blame_incremental - Makefile
bump version to 5.0-25
[pve-cluster.git] / Makefile
... / ...
CommitLineData
1PACKAGE=pve-cluster
2PKGVER=5.0
3PKGREL=25
4
5ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6GITVERSION:=$(shell git rev-parse HEAD)
7
8DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
9DBG_DEB=${PACKAGE}-dbgsym_${PKGVER}-${PKGREL}_${ARCH}.deb
10
11PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
12
13all: ${DEB} ${DBG_DEB}
14
15cpgtest: cpgtest.c
16 gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
17
18.PHONY: dinstall
19dinstall: ${DEB}
20 dpkg -i ${DEB}
21
22.PHONY: deb
23deb ${DBG_DEB}: ${DEB}
24${DEB}:
25 rm -f *.deb
26 rm -rf build
27 cp -a data build
28 cp -a debian build/debian
29 sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > build/debian/control
30 echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
31 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
32 lintian ${DEB}
33
34
35.PHONY: upload
36upload: ${DEB} ${DBG_DEB}
37 tar cf - ${DEB} ${DBG_DEB}| ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
38
39.PHONY: clean
40clean:
41 rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} *.buildinfo