2019-05-21 22:00:28 +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
2017-01-25 11:13:35 +03:00
PACKAGE = libpve-guest-common-perl
2023-05-22 14:22:29 +03:00
DEB = $( PACKAGE) _$( DEB_VERSION) _all.deb
DSC = $( PACKAGE) _$( DEB_VERSION) .dsc
2019-05-21 22:00:28 +03:00
2023-05-22 14:22:29 +03:00
BUILDDIR ?= $( PACKAGE) -$( DEB_VERSION)
2017-01-25 11:13:35 +03:00
all :
2023-05-22 13:30:42 +03:00
$(BUILDDIR) :
2023-05-22 14:22:43 +03:00
rm -rf $@ $@ .tmp
cp -a src $@ .tmp
cp -a debian $@ .tmp/
echo " git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout $( GITVERSION) " > $@ .tmp/debian/SOURCE
mv $@ .tmp $@
2019-05-21 22:00:28 +03:00
2017-01-25 11:13:35 +03:00
.PHONY : deb
2023-05-22 13:30:42 +03:00
deb : $( DEB )
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
lintian $( DEB)
2017-01-25 11:13:35 +03:00
2018-10-24 11:19:38 +03:00
.PHONY : dsc
2023-05-22 14:23:44 +03:00
dsc :
$( MAKE) $( DSC)
lintian $( DSC)
2023-05-22 13:30:42 +03:00
$(DSC) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -S -us -uc -d -nc
2023-05-22 14:23:44 +03:00
sbuild : $( DSC )
sbuild $( DSC)
2018-10-24 11:19:38 +03:00
2017-01-25 11:13:35 +03:00
.PHONY : upload
2023-05-22 14:23:20 +03:00
upload : UPLOAD_DIST ?= $( DEB_DISTRIBUTION )
2023-05-22 13:30:42 +03:00
upload : $( DEB )
2023-05-22 14:23:20 +03:00
tar cf - $( DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist $( UPLOAD_DIST)
2017-01-25 11:13:35 +03:00
distclean : clean
clean :
2023-05-22 14:23:27 +03:00
rm -rf $( PACKAGE) -[ 0-9] */ *.deb *.dsc *.changes *.buildinfo *.build $( PACKAGE) *.tar*
2017-01-25 11:13:35 +03:00
.PHONY : dinstall
2023-05-22 13:30:42 +03:00
dinstall : $( DEB )
dpkg -i $( DEB)