]> git.proxmox.com Git - glusterfs.git/blame - Makefile
update to 3.5.2
[glusterfs.git] / Makefile
CommitLineData
3fc98a8b 1RELEASE=3.2
49a969e6 2
3fc98a8b 3GLUSTERFSVER=3.5.2
e6d516fe 4DEBRELEASE=1
49a969e6
DM
5
6GLUSTERFSSRC=glusterfs_${GLUSTERFSVER}.orig.tar.gz
7GLUSTERFSDIR=glusterfs-${GLUSTERFSVER}
3fc98a8b 8DEBSRC=glusterfs_${GLUSTERFSVER}-${DEBRELEASE}.debian.tar.xz
49a969e6
DM
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
caed9cc2
DM
11GITVERSION:=$(shell cat .git/refs/heads/master)
12SOURCETXT="git clone git://git.proxmox.com/git/glusterfs.git\\ngit checkout ${GITVERSION}"
49a969e6
DM
13
14DEBS= \
15 glusterfs-common_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
16 glusterfs-client_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
17 glusterfs-server_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb
18
19all: deb
20
21.PHONY: dinstall
22dinstall: deb
23 dpkg -i ${DEBS}
24
25.PHONY: deb
26deb ${DEBS}: ${GLUSTERFSSRC} ${DEBSRC}
27 rm -rf ${GLUSTERFSDIR}
28 tar xf ${GLUSTERFSSRC}
29 cd ${GLUSTERFSDIR}; tar xvf ../${DEBSRC}
caed9cc2
DM
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
49a969e6
DM
34 cd ${GLUSTERFSDIR}; dpkg-buildpackage -b -uc -us
35
36.PHONY: upload
37upload:
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
49clean:
50 rm -rf *~ *_${ARCH}.deb *_${ARCH}.udeb *.changes *.dsc ${GLUSTERFSDIR}