]> git.proxmox.com Git - resource-agents-pve.git/blame - Makefile
remove drbd agents (those are in drbd8-utils)
[resource-agents-pve.git] / Makefile
CommitLineData
60d3f066
DM
1RELEASE=2.0
2
3PACKAGE=resource-agents-pve
6aebf69b 4PKGREL=3
60d3f066
DM
5RAVER=3.9.2
6RADIR=resource-agents-${RAVER}
7RASRC=${RADIR}.tar.bz2
8
60d3f066
DM
9DEB=${PACKAGE}_${RAVER}-${PKGREL}_amd64.deb
10
11all: ${DEB}
12
13${DEB} deb: ${RASRC}
14 rm -rf ${RADIR}
15 tar xf ${RASRC}
16 cp -av debian ${RADIR}/debian
17 cat ${RADIR}/AUTHORS >>${RADIR}/debian/copyright
18 cd ${RADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
19 lintian ${DEB}
20
21.PHONY: upload
22upload: ${DEB}
23 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
24 mkdir -p /pve/${RELEASE}/extra
25 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
26 rm -f /pve/${RELEASE}/extra/Packages*
27 cp ${DEB} /pve/${RELEASE}/extra
28 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
29 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
30
31distclean: clean
32
33clean:
34 rm -rf *~ debian/*~ *.deb ${RADIR} ${PACKAGE}_*
35
36.PHONY: dinstall
37dinstall: ${DEB}
38 dpkg -i ${DEB}