new helper kvmkeymaplist()
[pve-common.git] / Makefile
CommitLineData
e143e9d8
DM
1RELEASE=2.0
2
3VERSION=1.0
910d57b0 4PKGREL=12
e143e9d8
DM
5
6PACKAGE=libpve-common-perl
7
8PREFIX=/usr
9BINDIR=${PREFIX}/bin
10MANDIR=${PREFIX}/share/man
11DOCDIR=${PREFIX}/share/doc
12MAN1DIR=${MANDIR}/man1/
13PERLDIR=${PREFIX}/share/perl5
14
15ARCH=all
16DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
17
18all: ${DEB}
19
20.PHONY: dinstall
21dinstall: deb
22 dpkg -i ${DEB}
23
24
25.PHONY: deb
26deb ${DEB}:
27 rm -rf build
d405237d
DM
28 rsync -a data/ build
29 rsync -a debian/ build/debian
e143e9d8
DM
30 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
31 lintian ${DEB}
32
33.PHONY: clean
34clean:
35 rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz
36
37.PHONY: distclean
38distclean: clean
39
40
41.PHONY: upload
42upload: ${DEB}
43 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
44 mkdir -p /pve/${RELEASE}/extra
45 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
46 rm -f /pve/${RELEASE}/extra/Packages*
47 cp ${DEB} /pve/${RELEASE}/extra
48 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
49 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
50