2019-05-22 08:12:53 +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
2020-06-06 19:05:20 +03:00
export DEB_VERSION_UPSTREAM_REVISION
2019-05-22 08:12:53 +03:00
2020-06-06 18:35:28 +03:00
export PACKAGE = proxmox-widget-toolkit
BUILDDIR ?= ${ PACKAGE } -${ DEB_VERSION_UPSTREAM }
DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _all.deb
DSC = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } .dsc
2017-01-30 11:57:12 +03:00
2020-06-06 18:35:28 +03:00
GITVERSION := $( shell git rev-parse HEAD)
2017-01-30 11:57:12 +03:00
2019-03-30 14:56:57 +03:00
${BUILDDIR} :
2020-06-06 18:35:28 +03:00
rm -rf ${ BUILDDIR } ${ BUILDDIR } .tmp
cp -a src/ ${ BUILDDIR } .tmp
cp -a debian ${ BUILDDIR } .tmp/
echo " git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${ GITVERSION } " > ${ BUILDDIR } .tmp/debian/SOURCE
mv ${ BUILDDIR } .tmp/ ${ BUILDDIR }
2019-03-30 14:56:57 +03:00
2017-01-30 11:57:12 +03:00
.PHONY : deb
2018-02-09 12:13:31 +03:00
deb : ${DEB }
2019-03-30 14:56:57 +03:00
${DEB} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -b -us -uc
2017-01-30 11:57:12 +03:00
lintian ${ DEB }
2019-03-30 14:56:57 +03:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : ${BUILDDIR }
2019-05-22 08:13:23 +03:00
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d
2019-03-30 14:56:57 +03:00
lintian ${ DSC }
2017-01-30 11:57:12 +03:00
.PHONY : lint
lint : ${JSSRC }
2020-06-06 18:35:28 +03:00
${ MAKE } -C src lint
2017-01-30 11:57:12 +03:00
.PHONY : upload
upload : ${DEB }
2020-06-06 18:20:30 +03:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
2017-01-30 11:57:12 +03:00
distclean : clean
clean :
2020-06-06 18:35:28 +03:00
rm -rf ${ BUILDDIR } ${ BUILDDIR } .tmp *.tar.gz *.dsc *.deb *.changes *.buildinfo
2017-01-30 11:57:12 +03:00
find . -name '*~' -exec rm { } ';'
.PHONY : dinstall
dinstall : ${DEB }
dpkg -i ${ DEB }