update to 3.1.6
[fence-agents-pve.git] / Makefile
1 RELEASE=2.0
2
3 PACKAGE=fence-agents-pve
4 PKGREL=1
5 FAVER=3.1.6
6 FADIR=fence-agents-${FAVER}
7 FASRC=${FADIR}.tar.xz
8
9
10 DEB=${PACKAGE}_${FAVER}-${PKGREL}_amd64.deb
11
12 all: ${DEB}
13
14 ${DEB} deb: ${FASRC}
15         rm -rf ${FADIR}
16         tar xf ${FASRC}
17         cp -av debian ${FADIR}/debian
18         cat ${FADIR}/doc/COPYRIGHT >>${FADIR}/debian/copyright
19         cd ${FADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
20         lintian ${DEB}
21
22 .PHONY: upload
23 upload: ${DEB}
24         umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
25         mkdir -p /pve/${RELEASE}/extra
26         rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
27         rm -f /pve/${RELEASE}/extra/Packages*
28         cp ${DEB} /pve/${RELEASE}/extra
29         cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
30         umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
31
32 distclean: clean
33
34 clean:
35         rm -rf *~ debian/*~ *.deb ${FADIR} ${PACKAGE}_*
36
37 .PHONY: dinstall
38 dinstall: ${DEB}
39         dpkg -i ${DEB}