]> git.proxmox.com Git - glusterfs.git/blob - Makefile
update to 3.5.2
[glusterfs.git] / Makefile
1 RELEASE=3.2
2
3 GLUSTERFSVER=3.5.2
4 DEBRELEASE=1
5
6 GLUSTERFSSRC=glusterfs_${GLUSTERFSVER}.orig.tar.gz
7 GLUSTERFSDIR=glusterfs-${GLUSTERFSVER}
8 DEBSRC=glusterfs_${GLUSTERFSVER}-${DEBRELEASE}.debian.tar.xz
9
10 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11 GITVERSION:=$(shell cat .git/refs/heads/master)
12 SOURCETXT="git clone git://git.proxmox.com/git/glusterfs.git\\ngit checkout ${GITVERSION}"
13
14 DEBS= \
15 glusterfs-common_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
16 glusterfs-client_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
17 glusterfs-server_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb
18
19 all: deb
20
21 .PHONY: dinstall
22 dinstall: deb
23 dpkg -i ${DEBS}
24
25 .PHONY: deb
26 deb ${DEBS}: ${GLUSTERFSSRC} ${DEBSRC}
27 rm -rf ${GLUSTERFSDIR}
28 tar xf ${GLUSTERFSSRC}
29 cd ${GLUSTERFSDIR}; tar xvf ../${DEBSRC}
30 echo "${SOURCETXT}" > ${GLUSTERFSDIR}/debian/SOURCE
31 echo "debian/SOURCE" >>${GLUSTERFSDIR}/debian/glusterfs-server.docs
32 echo "debian/SOURCE" >>${GLUSTERFSDIR}/debian/glusterfs-common.docs
33 echo "debian/SOURCE" >>${GLUSTERFSDIR}/debian/glusterfs-client.docs
34 cd ${GLUSTERFSDIR}; dpkg-buildpackage -b -uc -us
35
36 .PHONY: upload
37 upload:
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
39 mkdir -p /pve/${RELEASE}/extra
40 rm -rf /pve/${RELEASE}/extra/glusterfs-common_*.deb
41 rm -rf /pve/${RELEASE}/extra/glusterfs-client_*.deb
42 rm -rf /pve/${RELEASE}/extra/glusterfs-server_*.deb
43 rm -rf /pve/${RELEASE}/extra/Packages*
44 cp ${DEBS} /pve/${RELEASE}/extra
45 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
46 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
47
48 .PHONY: clean
49 clean:
50 rm -rf *~ *_${ARCH}.deb *_${ARCH}.udeb *.changes *.dsc ${GLUSTERFSDIR}