]> git.proxmox.com Git - pve-cluster.git/blame - Makefile
bump version to 4.0-32
[pve-cluster.git] / Makefile
CommitLineData
19874747 1RELEASE=4.1
fe000966
DM
2
3PACKAGE=pve-cluster
89fde9ac 4PKGVER=4.0
f9adcb8b 5PKGREL=32
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
af75b50f
DM
24.PHONY: ${DEB} ${DBG_DEB}
25${DEB} ${DBG_DEB}:
fe000966
DM
26 rm -rf build
27 rsync -a --exclude .svn data/ build
28 cp -a debian build/debian
197d4344 29 echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
fe000966
DM
30 cd build; ./autogen.sh
31 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
5d7679ac 32 lintian ${DEB}
fe000966
DM
33
34
35.PHONY: upload
af75b50f 36upload: ${DEB} ${DBG_DEB}
fe000966
DM
37 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
38 mkdir -p /pve/${RELEASE}/extra
39 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
40 rm -f /pve/${RELEASE}/extra/Packages*
af75b50f 41 cp ${DEB} ${DBG_DEB} /pve/${RELEASE}/extra
fe000966
DM
42 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
43 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
44
45.PHONY: clean
46clean:
47 rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR}