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