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