]> git.proxmox.com Git - glusterfs.git/blame - Makefile
initial import
[glusterfs.git] / Makefile
CommitLineData
49a969e6
DM
1RELEASE=3.0
2
3GLUSTERFSVER=3.4.0
4DEBRELEASE=2
5
6GLUSTERFSSRC=glusterfs_${GLUSTERFSVER}.orig.tar.gz
7GLUSTERFSDIR=glusterfs-${GLUSTERFSVER}
8DEBSRC=glusterfs_${GLUSTERFSVER}-${DEBRELEASE}.debian.tar.gz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
12DEBS= \
13 glusterfs-common_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
14 glusterfs-client_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
15 glusterfs-server_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb
16
17all: deb
18
19.PHONY: dinstall
20dinstall: deb
21 dpkg -i ${DEBS}
22
23.PHONY: deb
24deb ${DEBS}: ${GLUSTERFSSRC} ${DEBSRC}
25 rm -rf ${GLUSTERFSDIR}
26 tar xf ${GLUSTERFSSRC}
27 cd ${GLUSTERFSDIR}; tar xvf ../${DEBSRC}
28 cd ${GLUSTERFSDIR}; dpkg-buildpackage -b -uc -us
29
30.PHONY: upload
31upload:
32 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
33 mkdir -p /pve/${RELEASE}/extra
34 rm -rf /pve/${RELEASE}/extra/glusterfs-common_*.deb
35 rm -rf /pve/${RELEASE}/extra/glusterfs-client_*.deb
36 rm -rf /pve/${RELEASE}/extra/glusterfs-server_*.deb
37 rm -rf /pve/${RELEASE}/extra/Packages*
38 cp ${DEBS} /pve/${RELEASE}/extra
39 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
40 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
41
42.PHONY: clean
43clean:
44 rm -rf *~ *_${ARCH}.deb *_${ARCH}.udeb *.changes *.dsc ${GLUSTERFSDIR}