]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
set RELEASE=3.2
[corosync-pve.git] / Makefile
CommitLineData
2408d463 1RELEASE=3.2
930e051d 2
07d9b3a0 3# source from http://www.corosync.org
aeb347a9 4
728d91c3 5CSVERSION=1.4.6
1d458e36 6CSRELEASE=1
930e051d
DM
7CSDIR=corosync-${CSVERSION}
8CSSRC=corosync-${CSVERSION}.orig.tar.gz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
5aa0e5ba 11GITVERSION:=$(shell cat .git/refs/heads/master)
930e051d
DM
12
13DEBS= \
14 corosync-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
15 libcorosync4-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
16 libcorosync-pve-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
17
18all: ${DEBS}
19 echo ${DEBS}
20
21${DEBS}: ${CSSRC}
22 echo ${DEBS}
23 rm -rf ${CSDIR}
24 tar xf ${CSSRC}
25 cp -a debian ${CSDIR}/debian
5aa0e5ba
DM
26 echo "git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian/SOURCE
27
930e051d
DM
28 cd ${CSDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
29
930e051d
DM
30.PHONY: upload
31upload: ${DEBS}
32 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
33 mkdir -p /pve/${RELEASE}/extra
34 rm -f /pve/${RELEASE}/extra/corosync*.deb
35 rm -f /pve/${RELEASE}/extra/libcorosync*.deb
36 rm -f /pve/${RELEASE}/extra/Packages*
37 cp ${DEBS} /pve/${RELEASE}/extra
38 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
39 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
40
01f3ad04
DM
41distclean: clean
42
930e051d
DM
43.PHONY: clean
44clean:
45 rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
46
47.PHONY: dinstall
48dinstall: ${DEBS}
49 dpkg -i ${DEBS}