]> git.proxmox.com Git - novnc-pve.git/blame - Makefile
bump version to 0.5-4
[novnc-pve.git] / Makefile
CommitLineData
568f58b2 1RELEASE=4.0
42e49257 2
0fbbbb73 3PACKAGE=novnc-pve
a02c1761 4PKGREL=4
0fbbbb73 5
42e49257
DM
6NOVNCDIR=novnc
7NOVNCSRC=${NOVNCDIR}.tgz
74991400 8NOVNCVER=0.5
42e49257
DM
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
904d5108 11GITVERSION:=$(shell cat .git/refs/heads/master)
42e49257 12
0fbbbb73
DM
13DEB=${PACKAGE}_${NOVNCVER}-${PKGREL}_${ARCH}.deb
14
42e49257
DM
15all: deb
16
17.PHONY: dinstall
18dinstall: deb
19 dpkg -i ${DEB}
20
21.PHONY: deb
22deb ${DEB}: ${TARSRC}
23 rm -rf ${NOVNCDIR}
24 tar xf ${NOVNCSRC}
904d5108 25 cp -a debian ${NOVNCDIR}/debian
a7e88cd9 26 cp ${NOVNCDIR}/include/ui.js ${NOVNCDIR}/pveui.js
904d5108
DM
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
42e49257 30 cd ${NOVNCDIR}; dpkg-buildpackage -b -uc -us
12de86f0 31 lintian ${DEB}
42e49257
DM
32
33.PHONY: download
34download:
35 rm -rf ${NOVNCDIR}
36 git clone git://github.com/kanaka/noVNC ${NOVNCDIR}
1de2531f 37 cd ${NOVNCDIR}; git checkout -b local 8f3c0f6b9b5e5c23a7dc7e90bd22901017ab4fc7
42e49257
DM
38 tar czf ${NOVNCSRC} ${NOVNCDIR}
39
323d6cac
DM
40.PHONY: upload
41upload: ${DEB}
42 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
43 mkdir -p /pve/${RELEASE}/extra
44 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
45 rm -f /pve/${RELEASE}/extra/Packages*
46 cp ${DEB} /pve/${RELEASE}/extra
47 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
48 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
49
50.PHONY: distclean
51distclean: clean
52
42e49257
DM
53.PHONY: clean
54clean:
0fbbbb73 55 rm -rf *~ debian/*~ *_${ARCH}.deb *_all.deb *.changes *.dsc novnc