]> git.proxmox.com Git - novnc-pve.git/blob - Makefile
version bump for debian stretch - to make room for jessie updates
[novnc-pve.git] / Makefile
1 PACKAGE=novnc-pve
2 PKGREL=9
3
4 NOVNCDIR=novnc
5 NOVNCSRC=${NOVNCDIR}.tgz
6 NOVNCVER=0.5
7
8 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9 GITVERSION:=$(shell cat .git/refs/heads/master)
10
11 DEB=${PACKAGE}_${NOVNCVER}-${PKGREL}_${ARCH}.deb
12
13 all: deb
14
15 .PHONY: dinstall
16 dinstall: deb
17 dpkg -i ${DEB}
18
19 .PHONY: deb
20 deb: ${DEB}
21 ${DEB}: ${TARSRC}
22 rm -rf ${NOVNCDIR}
23 tar xf ${NOVNCSRC}
24 cp -a debian ${NOVNCDIR}/debian
25 cp ${NOVNCDIR}/include/ui.js ${NOVNCDIR}/pveui.js
26 cp ${NOVNCDIR}/vnc.html ${NOVNCDIR}/index.html.tpl
27 # fix file permissions
28 chmod 0644 ${NOVNCDIR}/include/jsunzip.js
29 echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${NOVNCDIR}/debian/SOURCE
30 cd ${NOVNCDIR}; dpkg-buildpackage -b -uc -us
31 lintian ${DEB}
32
33 .PHONY: download
34 download:
35 rm -rf ${NOVNCDIR}
36 git clone git://github.com/kanaka/noVNC ${NOVNCDIR}
37 cd ${NOVNCDIR}; git checkout -b local a0e7ab43dca0ce11a713694ee4cf530bd3b17c5a
38 tar czf ${NOVNCSRC} ${NOVNCDIR}
39
40 .PHONY: upload
41 upload: ${DEB}
42 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
43
44 .PHONY: distclean
45 distclean: clean
46
47 .PHONY: clean
48 clean:
49 rm -rf *~ debian/*~ *_${ARCH}.deb *_all.deb *.changes *.dsc novnc