]> git.proxmox.com Git - pve-cluster.git/blob - Makefile
moved x509 certificate cache helpers from pve-manager package
[pve-cluster.git] / Makefile
1 PACKAGE=pve-cluster
2 PKGVER=4.0
3 PKGREL=47
4
5 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6 GITVERSION:=$(shell cat .git/refs/heads/master)
7
8 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
9 DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb
10
11
12
13 all: ${DEB} ${DBG_DEB}
14
15 cpgtest: cpgtest.c
16 gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
17
18 .PHONY: dinstall
19 dinstall: ${DEB}
20 dpkg -i ${DEB}
21
22 .PHONY: deb
23 deb ${DEB} ${DBG_DEB}:
24 rm -f *.deb
25 rm -rf build
26 rsync -a --exclude .svn data/ build
27 cp -a debian build/debian
28 echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
29 cd build; ./autogen.sh
30 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
31 lintian ${DEB}
32
33
34 .PHONY: upload
35 upload: ${DEB} ${DBG_DEB}
36 tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com upload
37
38 .PHONY: clean
39 clean:
40 rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR}