2019-08-06 11:49:01 +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
i n c l u d e / u s r / s h a r e / d p k g / a r c h i t e c t u r e . m k
2016-06-09 15:49:31 +03:00
PACKAGE = spiceterm
GITVERSION := $( shell cat .git/refs/heads/master)
2019-08-06 11:49:01 +03:00
BUILDDIR ?= ${ PACKAGE } -${ DEB_VERSION_UPSTREAM }
2016-06-09 15:49:31 +03:00
2019-08-06 11:49:01 +03:00
export VERSION = $( DEB_VERSION_UPSTREAM)
2016-06-09 15:49:31 +03:00
2019-08-06 11:49:01 +03:00
DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _${ DEB_BUILD_ARCH } .deb
DSC = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } .dsc
2016-06-09 15:49:31 +03:00
2019-08-06 11:49:01 +03:00
${BUILDDIR} : src / debian /
rm -rf $( BUILDDIR)
rsync -a src/ debian $( BUILDDIR)
echo " git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${ GITVERSION } " > $( BUILDDIR) /debian/SOURCE
2016-06-09 15:49:31 +03:00
2019-08-06 11:49:01 +03:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -S -us -uc -d
lintian ${ DSC }
2016-06-09 15:49:31 +03:00
.PHONY : deb
2018-11-30 12:05:28 +03:00
deb : ${DEB }
2019-08-06 11:49:01 +03:00
${DEB} : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
2016-06-09 15:49:31 +03:00
lintian ${ DEB }
.PHONY : dinstall
dinstall : ${DEB }
dpkg -i ${ DEB }
.PHONY : upload
upload : ${DEB }
2019-08-06 11:49:01 +03:00
tar cf - ${ DEB } | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${ ARCH }
2016-06-09 15:49:31 +03:00
2019-08-06 11:49:01 +03:00
.PHONY : distclean clean
2016-06-09 15:49:31 +03:00
distclean : clean
clean :
2019-08-06 11:49:01 +03:00
rm -rf *~ $( PACKAGE) -*/ *.deb *.changes genfont *.buildinfo *.dsc *.tar.gz