2019-05-21 21:39:36 +03: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 09:43:03 +04:00
PACKAGE = libpve-storage-perl
2023-05-24 17:21:07 +03:00
BUILDDIR ?= $( PACKAGE) -$( DEB_VERSION)
2023-05-24 17:21:53 +03:00
DSC = $( PACKAGE) _$( DEB_VERSION) .dsc
2011-08-23 09:43:03 +04:00
2018-05-16 11:09:37 +03:00
GITVERSION := $( shell git rev-parse HEAD)
2013-09-05 15:02:40 +04:00
2023-05-24 14:56:17 +03:00
DEB = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) _all.deb
2011-08-23 09:43:03 +04:00
2017-06-09 18:20:09 +03:00
all :
2011-08-23 09:43:03 +04:00
.PHONY : dinstall
dinstall : deb
2023-05-24 14:56:17 +03:00
dpkg -i $( DEB)
2011-08-23 09:43:03 +04:00
2023-05-24 17:21:07 +03:00
$(BUILDDIR) :
rm -rf $@ $@ .tmp
cp -a src $@ .tmp
cp -a debian $@ .tmp/
echo " git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout $( GITVERSION) " >$@ .tmp/debian/SOURCE
mv $@ .tmp $@
2017-02-06 13:50:01 +03:00
.PHONY : deb
2023-05-24 14:56:17 +03:00
deb : $( DEB )
2023-05-24 17:21:07 +03:00
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
2023-05-24 14:56:17 +03:00
lintian $( DEB)
2011-08-23 09:43:03 +04:00
2023-05-24 17:20:27 +03:00
.PHONY : clean distclean
distclean : clean
2016-04-06 12:26:44 +03:00
clean :
2023-05-24 17:21:07 +03:00
rm -rf $( PACKAGE) -[ 0-9] */ *.deb *.dsc *.build *.buildinfo *.changes $( PACKAGE) *.tar.*
2011-08-23 09:43:03 +04:00
.PHONY : upload
2023-05-24 18:21:02 +03:00
upload : UPLOAD_DIST ?= $( DEB_DISTRIBUTION )
2023-05-24 14:56:17 +03:00
upload : $( DEB )
2023-05-24 18:21:02 +03:00
tar cf - $( DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $( UPLOAD_DIST)
2023-05-24 17:21:53 +03:00
dsc : $( DSC )
$( MAKE) clean
$( MAKE) $( DSC)
lintian $( DSC)
$(DSC) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -S -us -uc -d
2023-05-24 17:22:06 +03:00
sbuild : $( DSC )
sbuild $( DSC)