2017-03-08 10:27:29 +01:00
VERSION = 5.0
2019-05-15 14:16:17 +02:00
PKGREL = 52
2011-08-23 07:31:48 +02:00
PACKAGE = libpve-common-perl
ARCH = all
2013-09-02 10:45:02 +02:00
2018-10-17 14:36:08 +02:00
BUILDDIR ?= ${ PACKAGE } -${ VERSION }
2018-06-18 08:32:24 +02:00
2011-08-23 07:31:48 +02:00
DEB = ${ PACKAGE } _${ VERSION } -${ PKGREL } _${ ARCH } .deb
2018-10-17 14:36:02 +02:00
DSC = ${ PACKAGE } _${ VERSION } -${ PKGREL } .dsc
TARGZ = ${ PACKAGE } _${ VERSION } -${ PKGREL } .tar.gz
2011-08-23 07:31:48 +02:00
2018-10-17 14:36:02 +02:00
all :
${ MAKE } -C src
2011-08-23 07:31:48 +02:00
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }
2018-10-17 14:36:02 +02:00
${BUILDDIR} : src debian
2018-06-18 08:32:24 +02:00
rm -rf ${ BUILDDIR }
2018-10-17 14:36:02 +02:00
rsync -a * ${ BUILDDIR }
2018-10-17 14:36:04 +02:00
echo " git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $( shell git rev-parse HEAD) " > ${ BUILDDIR } /debian/SOURCE
2018-10-17 14:36:02 +02:00
.PHONY : deb
deb : ${DEB }
${DEB} : ${BUILDDIR }
2018-06-18 08:32:24 +02:00
cd ${ BUILDDIR } ; dpkg-buildpackage -b -us -uc
2011-08-23 07:31:48 +02:00
lintian ${ DEB }
2018-10-17 14:36:02 +02:00
.PHONY : dsc
dsc ${TARGZ} : ${DSC }
${DSC} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d -nc
lintian ${ DSC }
2018-06-18 08:34:59 +02:00
.PHONY : clean distclean
2011-08-23 07:31:48 +02:00
distclean : clean
2018-06-18 08:34:59 +02:00
clean :
2018-10-17 14:36:02 +02:00
rm -rf *~ *.deb *.changes ${ BUILDDIR } *.buildinfo *.dsc *.tar.gz
2011-08-23 07:31:48 +02:00
2015-06-25 11:54:31 +02:00
.PHONY : check
check :
$( MAKE) -C test check
2011-08-23 07:31:48 +02:00
2018-10-17 14:36:02 +02:00
.PHONY : install
install :
${ MAKE } -C src install
2011-08-23 07:31:48 +02:00
.PHONY : upload
upload : ${DEB }
2018-04-05 12:23:17 +02:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
2011-08-23 07:31:48 +02:00