]> git.proxmox.com Git - pve-cluster.git/blame - Makefile
bump version to 4.0-44
[pve-cluster.git] / Makefile
CommitLineData
5171b1d5 1RELEASE=4.2
fe000966
DM
2
3PACKAGE=pve-cluster
89fde9ac 4PKGVER=4.0
8a60a07d 5PKGREL=44
fe000966
DM
6
7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
197d4344 8GITVERSION:=$(shell cat .git/refs/heads/master)
fe000966
DM
9
10DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
af75b50f 11DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb
fe000966
DM
12
13
af75b50f
DM
14
15all: ${DEB} ${DBG_DEB}
fe000966
DM
16
17cpgtest: cpgtest.c
a8bf13d0 18 gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
fe000966
DM
19
20.PHONY: dinstall
170647bc
DM
21dinstall: ${DEB}
22 dpkg -i ${DEB}
fe000966 23
22c1bf56
WB
24.PHONY: deb
25deb ${DEB} ${DBG_DEB}:
26 rm -f *.deb
fe000966
DM
27 rm -rf build
28 rsync -a --exclude .svn data/ build
29 cp -a debian build/debian
197d4344 30 echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
fe000966
DM
31 cd build; ./autogen.sh
32 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
5d7679ac 33 lintian ${DEB}
fe000966
DM
34
35
36.PHONY: upload
af75b50f 37upload: ${DEB} ${DBG_DEB}
fe000966
DM
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
39 mkdir -p /pve/${RELEASE}/extra
40 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
41 rm -f /pve/${RELEASE}/extra/Packages*
af75b50f 42 cp ${DEB} ${DBG_DEB} /pve/${RELEASE}/extra
fe000966
DM
43 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
44 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
45
46.PHONY: clean
47clean:
48 rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR}