cpuset: fix short_string
[pve-common.git] / Makefile
CommitLineData
ec48b70c 1RELEASE=4.3
e143e9d8 2
47e4eb11 3VERSION=4.0
457d3cd6 4PKGREL=81
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
b98a06a3
DM
16GITVERSION:=$(shell cat .git/refs/heads/master)
17
e143e9d8
DM
18DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
19
20all: ${DEB}
21
22.PHONY: dinstall
23dinstall: deb
24 dpkg -i ${DEB}
25
26
27.PHONY: deb
d5f61909
DM
28deb ${DEB}:
29 $(MAKE) -C test check
e143e9d8 30 rm -rf build
b51b16e6 31 rsync -a src/ build
d405237d 32 rsync -a debian/ build/debian
b98a06a3 33 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
e143e9d8
DM
34 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
35 lintian ${DEB}
36
37.PHONY: clean
38clean:
39 rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz
40
41.PHONY: distclean
42distclean: clean
43
936218b8
WB
44.PHONY: check
45check:
46 $(MAKE) -C test check
e143e9d8
DM
47
48.PHONY: upload
49upload: ${DEB}
fb1391aa 50 tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload
e143e9d8 51