2014-06-13 09:20:55 +02:00
PACKAGE = novnc-pve
2018-05-09 13:31:34 +02:00
VER = 1.0.0
2018-07-23 14:08:41 +02:00
PKGREL = 2
2014-06-13 09:20:55 +02:00
2017-05-22 16:58:10 +02:00
SRCDIR = novnc
2018-01-23 08:19:56 +01:00
BUILDDIR = ${ SRCDIR } .tmp
2014-06-13 07:29:42 +02:00
ARCH := $( shell dpkg-architecture -qDEB_BUILD_ARCH)
2018-01-23 08:19:55 +01:00
GITVERSION := $( shell git rev-parse HEAD)
2014-06-13 07:29:42 +02:00
2017-05-22 16:58:10 +02:00
DEB = ${ PACKAGE } _${ VER } -${ PKGREL } _${ ARCH } .deb
2014-06-13 09:20:55 +02:00
2017-05-22 16:58:10 +02:00
all : ${DEB }
@echo ${ DEB }
2014-06-13 07:29:42 +02:00
.PHONY : deb
2017-02-07 15:40:30 +01:00
deb : ${DEB }
2017-05-22 16:58:10 +02:00
${DEB} : | submodule
2018-01-23 08:19:56 +01: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
cd ${ BUILDDIR } ; dpkg-buildpackage -rfakeroot -b -uc -us
2014-08-01 06:43:30 +02:00
lintian ${ DEB }
2017-05-22 16:58:10 +02:00
@echo ${ DEB }
.PHONY : submodule
submodule :
test -f " ${ SRCDIR } /vnc.html " || git submodule update --init
2014-06-13 07:29:42 +02:00
.PHONY : download
2017-05-22 16:58:10 +02:00
download ${SRCDIR} :
git submodule foreach 'git pull --ff-only origin master'
2014-06-13 07:29:42 +02:00
2014-06-13 09:38:05 +02:00
.PHONY : upload
upload : ${DEB }
2017-03-09 16:51:19 +01:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
2014-06-13 09:38:05 +02:00
.PHONY : distclean
distclean : clean
2014-06-13 07:29:42 +02:00
.PHONY : clean
clean :
2018-01-23 08:19:56 +01:00
rm -rf *~ debian/*~ *.deb ${ BUILDDIR } *.changes *.dsc *.buildinfo
2017-05-22 16:58:10 +02:00
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }