]> git.proxmox.com Git - redhat-cluster-pve.git/blob - Makefile
imported from svn 'redhat-cluster/trunk'
[redhat-cluster-pve.git] / Makefile
1 RELEASE=2.0
2
3 RHCVER=3.1.5
4 RHCBRANCH=origin/STABLE31
5
6 PACKAGE=redhat-cluster-pve
7 PKGREL=2
8
9 DEBS= \
10 ${PACKAGE}_${RHCVER}-${PKGREL}_amd64.deb \
11 ${PACKAGE}-dev_${RHCVER}-${PKGREL}_amd64.deb
12
13 all: ${DEBS}
14 echo ${DEBS}
15
16 .PHONY: cluster-${RHCVER}
17 ${DEBS} cluster-${RHCVER}: cluster.git
18 rm -rf cluster-${RHCVER}
19 rsync -a --exclude .git --exclude .gitignore cluster.git/ cluster-${RHCVER}
20 cp -a debian cluster-${RHCVER}/debian
21 cd cluster-${RHCVER}; dpkg-buildpackage -rfakeroot -b -us -uc
22
23 cluster.git download:
24 git clone git://git.fedorahosted.org/cluster.git cluster.git
25 cd cluster.git; git checkout -b local ${RHCBRANCH}
26
27 .PHONY: upload
28 upload: ${DEBS}
29 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
30 mkdir -p /pve/${RELEASE}/extra
31 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
32 rm -f /pve/${RELEASE}/extra/Packages*
33 cp ${DEBS} /pve/${RELEASE}/extra
34 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
35 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
36
37 distclean: clean
38 rm -rf cluster.git
39
40 clean:
41 rm -rf *~ *.deb cluster-${RHCVER} ${PACKAGE}_* ${PACKAGE}-dev_*
42
43 .PHONY: dinstall
44 dinstall: ${DEBS}
45 dpkg -i ${DEBS}