5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-26 07:21:26 +03:00
pve-common/Makefile

50 lines
924 B
Makefile
Raw Normal View History

2017-03-08 12:27:29 +03:00
VERSION=5.0
PKGREL=26
2011-08-23 09:31:48 +04:00
PACKAGE=libpve-common-perl
PREFIX=/usr
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/share/man
DOCDIR=${PREFIX}/share/doc
MAN1DIR=${MANDIR}/man1/
PERLDIR=${PREFIX}/share/perl5
ARCH=all
GITVERSION:=$(shell git rev-parse HEAD)
2013-09-02 12:45:02 +04:00
2011-08-23 09:31:48 +04:00
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
all: ${DEB}
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
.PHONY: deb
deb ${DEB}:
$(MAKE) -C test check
2011-08-23 09:31:48 +04:00
rm -rf build
2015-02-27 18:57:20 +03:00
rsync -a src/ build
rsync -a debian/ build/debian
2013-09-02 12:45:02 +04:00
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
2017-09-06 10:36:49 +03:00
cd build; dpkg-buildpackage -b -us -uc
2011-08-23 09:31:48 +04:00
lintian ${DEB}
.PHONY: clean
clean:
2017-04-04 10:32:59 +03:00
rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
2011-08-23 09:31:48 +04:00
.PHONY: distclean
distclean: clean
2015-06-25 12:54:31 +03:00
.PHONY: check
check:
$(MAKE) -C test check
2011-08-23 09:31:48 +04:00
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
2011-08-23 09:31:48 +04:00