2019-07-23 09:32:29 +02:00
i n c l u d e / u s r / s h a r e / d p k g / p k g - i n f o . m k
2011-08-23 07:31:48 +02:00
PACKAGE = libpve-common-perl
ARCH = all
2013-09-02 10:45:02 +02:00
2019-07-23 09:32:29 +02:00
BUILDDIR ?= ${ PACKAGE } -${ DEB_VERSION_UPSTREAM }
2018-06-18 08:32:24 +02:00
2019-07-23 09:32:29 +02:00
DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _${ ARCH } .deb
DSC = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } .dsc
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 }
2020-12-14 19:51:37 +01:00
${BUILDDIR} : src debian test
rm -rf ${ BUILDDIR } ${ BUILDDIR } .tmp; mkdir ${ BUILDDIR } .tmp
cp -a -t ${ BUILDDIR } .tmp $^ Makefile
echo " git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $( shell git rev-parse HEAD) " > ${ BUILDDIR } .tmp/debian/SOURCE
mv ${ BUILDDIR } .tmp ${ BUILDDIR }
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
2023-05-08 15:25:40 +02:00
dsc : ${DSC }
2018-10-17 14:36:02 +02:00
${DSC} : ${BUILDDIR }
2023-05-08 15:25:40 +02:00
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d
2018-10-17 14:36:02 +02:00
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 :
2020-12-03 16:39:10 +01:00
rm -rf *~ *.deb *.changes ${ PACKAGE } -*/ *.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 }
2021-05-09 17:33:31 +02:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye