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