2019-05-22 20:22:17 +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
2014-06-13 11:20:55 +04:00
PACKAGE = novnc-pve
2017-05-22 17:58:10 +03:00
SRCDIR = novnc
2018-01-23 10:19:56 +03:00
BUILDDIR = ${ SRCDIR } .tmp
2014-06-13 09:29:42 +04:00
2018-01-23 10:19:55 +03:00
GITVERSION := $( shell git rev-parse HEAD)
2014-06-13 09:29:42 +04:00
2019-05-22 20:22:17 +03:00
DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _all.deb
2019-05-22 20:31:36 +03:00
DSC = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } .dsc
2014-06-13 11:20:55 +04:00
2019-09-09 17:31:09 +03:00
all :
2014-06-13 09:29:42 +04:00
2019-05-22 20:31:36 +03:00
${SRCDIR}/vnc.html : submodule
${BUILDDIR} : $( SRCDIR ) /vnc .html
2018-01-23 10:19:56 +03:00
rm -rf ${ BUILDDIR }
cp -rpa ${ SRCDIR } ${ BUILDDIR }
cp -a debian ${ BUILDDIR }
echo " git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${ GITVERSION } " > ${ BUILDDIR } /debian/SOURCE
2019-05-22 20:31:36 +03:00
.PHONY : deb
deb : ${DEB }
${DEB} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -b -uc -us
2014-08-01 08:43:30 +04:00
lintian ${ DEB }
2017-05-22 17:58:10 +03:00
@echo ${ DEB }
2019-05-22 20:31:36 +03:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -S -uc -us -d
lintian ${ DSC }
2017-05-22 17:58:10 +03:00
.PHONY : submodule
submodule :
2023-02-02 12:57:05 +03:00
test -f " ${ SRCDIR } /package.json " || git submodule update --init
2014-06-13 09:29:42 +04:00
.PHONY : download
2017-05-22 17:58:10 +03:00
download ${SRCDIR} :
git submodule foreach 'git pull --ff-only origin master'
2014-06-13 09:29:42 +04:00
2014-06-13 11:38:05 +04:00
.PHONY : upload
upload : ${DEB }
2021-05-17 12:06:17 +03:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist bullseye
2014-06-13 11:38:05 +04:00
.PHONY : distclean
distclean : clean
2014-06-13 09:29:42 +04:00
.PHONY : clean
clean :
2019-09-09 17:31:09 +03:00
rm -rf *~ debian/*~ *.deb ${ BUILDDIR } *.changes *.dsc *.buildinfo ${ PACKAGE } *.tar.gz
2017-05-22 17:58:10 +03:00
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }