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 }
2021-05-28 15:13:41 +03:00
WT_DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _all.deb
WT_DEV_DEB = ${ PACKAGE } -dev_${ DEB_VERSION_UPSTREAM_REVISION } _all.deb
DEBS = ${ WT_DEB } ${ WT_DEV_DEB }
2020-06-06 18:35:28 +03:00
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
2021-05-28 15:13:41 +03:00
deb : ${DEBS }
${DEBS} : ${BUILDDIR }
2019-03-30 14:56:57 +03:00
cd ${ BUILDDIR } ; dpkg-buildpackage -b -us -uc
2021-05-28 15:13:41 +03:00
lintian ${ DEBS }
2017-01-30 11:57:12 +03:00
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
2021-05-28 15:13:41 +03:00
upload : ${DEBS }
tar cf - ${ WT_DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
tar cf - ${ WT_DEV_DEB } | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist buster
2017-01-30 11:57:12 +03:00
distclean : clean
clean :
2020-11-02 09:41:30 +03:00
$( MAKE) -C src 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
2021-05-28 15:13:41 +03:00
dinstall : ${DEBS }
dpkg -i ${ DEBS }