2014-06-13 11:20:55 +04:00
PACKAGE = novnc-pve
2017-05-22 17:58:12 +03:00
VER = 0.6
2017-06-07 14:52:26 +03:00
PKGREL = 3
2014-06-13 11:20:55 +04:00
2017-05-22 17:58:10 +03:00
SRCDIR = novnc
2014-06-13 09:29:42 +04:00
ARCH := $( shell dpkg-architecture -qDEB_BUILD_ARCH)
2014-06-13 11:29:23 +04:00
GITVERSION := $( shell cat .git/refs/heads/master)
2014-06-13 09:29:42 +04:00
2017-05-22 17:58:10 +03:00
DEB = ${ PACKAGE } _${ VER } -${ PKGREL } _${ ARCH } .deb
2014-06-13 11:20:55 +04:00
2017-05-22 17:58:10 +03:00
all : ${DEB }
@echo ${ DEB }
2014-06-13 09:29:42 +04:00
.PHONY : deb
2017-02-07 17:40:30 +03:00
deb : ${DEB }
2017-05-22 17:58:10 +03:00
${DEB} : | submodule
rm -rf ${ SRCDIR } .tmp
cp -rpa ${ SRCDIR } ${ SRCDIR } .tmp
2017-05-22 17:58:14 +03:00
cp -a debian ${ SRCDIR } .tmp/
2017-05-22 17:58:10 +03:00
echo " git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${ GITVERSION } " > ${ SRCDIR } .tmp/debian/SOURCE
cd ${ SRCDIR } .tmp; dpkg-buildpackage -rfakeroot -b -uc -us
2014-08-01 08:43:30 +04:00
lintian ${ DEB }
2017-05-22 17:58:10 +03:00
@echo ${ DEB }
.PHONY : submodule
submodule :
test -f " ${ SRCDIR } /vnc.html " || 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 }
2017-03-09 18:51:19 +03:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
2014-06-13 11:38:05 +04:00
.PHONY : distclean
distclean : clean
2014-06-13 09:29:42 +04:00
.PHONY : clean
clean :
2017-05-22 17:58:10 +03:00
rm -rf *~ debian/*~ *_${ ARCH } .deb ${ SRCDIR } .tmp *_all.deb *.changes *.dsc *.buildinfo
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }