]> git.proxmox.com Git - redhat-cluster-pve.git/blame - Makefile
fix schema to allow toplevel pvevm resource
[redhat-cluster-pve.git] / Makefile
CommitLineData
3e8a6763
DM
1RELEASE=2.0
2
39787e2a 3RHCVER=3.1.8
3e8a6763
DM
4RHCBRANCH=origin/STABLE31
5
8db3ffcc
DM
6RHCDIR=cluster-${RHCVER}
7RHCSRC=${RHCDIR}.tar.gz
8
3e8a6763 9PACKAGE=redhat-cluster-pve
1d7dd7dc 10PKGREL=2
3e8a6763
DM
11
12DEBS= \
13 ${PACKAGE}_${RHCVER}-${PKGREL}_amd64.deb \
14 ${PACKAGE}-dev_${RHCVER}-${PKGREL}_amd64.deb
15
16all: ${DEBS}
17 echo ${DEBS}
18
62def95f 19${DEBS}: ${RHCSRC}
8db3ffcc 20 rm -rf ${RHCDIR}
62def95f 21 tar xf ${RHCSRC}
8db3ffcc 22 cp -a debian ${RHCDIR}/debian
fabb166e 23 cat ${RHCDIR}/doc/COPYRIGHT >>${RHCDIR}/debian/copyright
8db3ffcc 24 cd ${RHCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
fabb166e 25 lintian ${DEBS}
3e8a6763 26
8db3ffcc
DM
27${RHCSRC} download:
28 rm -rf ${RHCDIR} cluster.git
3e8a6763
DM
29 git clone git://git.fedorahosted.org/cluster.git cluster.git
30 cd cluster.git; git checkout -b local ${RHCBRANCH}
8db3ffcc
DM
31 rsync -a --exclude .git --exclude .gitignore cluster.git/ ${RHCDIR}
32 tar czf ${RHCSRC}.tmp ${RHCDIR}
33 rm -rf ${RHCDIR}
34 mv ${RHCSRC}.tmp ${RHCSRC}
3e8a6763
DM
35
36.PHONY: upload
37upload: ${DEBS}
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
39 mkdir -p /pve/${RELEASE}/extra
40 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
41 rm -f /pve/${RELEASE}/extra/Packages*
42 cp ${DEBS} /pve/${RELEASE}/extra
43 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
44 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
45
46distclean: clean
47 rm -rf cluster.git
48
49clean:
8db3ffcc 50 rm -rf *~ *.deb ${RHCDIR} ${PACKAGE}_* ${PACKAGE}-dev_*
3e8a6763
DM
51
52.PHONY: dinstall
53dinstall: ${DEBS}
54 dpkg -i ${DEBS}