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
2023-05-06 18:00:07 +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
2023-05-06 18:00:07 +03:00
DEB = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) _all.deb
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
2023-05-06 18:00:07 +03:00
$(SRCDIR)/vnc.html : submodule
$(BUILDDIR) : $( SRCDIR ) /vnc .html
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
2023-05-06 18:00:07 +03:00
deb : $( DEB )
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -uc -us
lintian $( DEB)
@echo $( DEB)
2017-05-22 17:58:10 +03:00
2019-05-22 20:31:36 +03:00
.PHONY : dsc
2023-05-06 18:00:07 +03:00
dsc : $( DSC )
$(DSC) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -S -uc -us -d
lintian $( DSC)
2019-05-22 20:31:36 +03:00
2017-05-22 17:58:10 +03:00
.PHONY : submodule
submodule :
2023-05-06 18:00:07 +03:00
test -f " $( SRCDIR) /package.json " || git submodule update --init
2014-06-13 09:29:42 +04:00
.PHONY : download
2023-05-06 18:00:07 +03:00
download $(SRCDIR) :
2017-05-22 17:58:10 +03:00
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
2023-05-06 18:00:07 +03:00
upload : $( DEB )
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 :
2023-05-06 18:00:07 +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
2023-05-06 18:00:07 +03:00
dpkg -i $( DEB)