]> git.proxmox.com Git - glusterfs.git/blob - Makefile
initial import
[glusterfs.git] / Makefile
1 RELEASE=3.0
2
3 GLUSTERFSVER=3.4.0
4 DEBRELEASE=2
5
6 GLUSTERFSSRC=glusterfs_${GLUSTERFSVER}.orig.tar.gz
7 GLUSTERFSDIR=glusterfs-${GLUSTERFSVER}
8 DEBSRC=glusterfs_${GLUSTERFSVER}-${DEBRELEASE}.debian.tar.gz
9
10 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
12 DEBS= \
13 glusterfs-common_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
14 glusterfs-client_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
15 glusterfs-server_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb
16
17 all: deb
18
19 .PHONY: dinstall
20 dinstall: deb
21 dpkg -i ${DEBS}
22
23 .PHONY: deb
24 deb ${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
31 upload:
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
43 clean:
44 rm -rf *~ *_${ARCH}.deb *_${ARCH}.udeb *.changes *.dsc ${GLUSTERFSDIR}