5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2024-12-22 17:34:20 +03:00
novnc-pve/Makefile

42 lines
923 B
Makefile
Raw Normal View History

2014-06-13 09:29:42 +04:00
RELEASE=3.2
2014-06-13 11:20:55 +04:00
PACKAGE=novnc-pve
PKGREL=1
2014-06-13 09:29:42 +04:00
NOVNCDIR=novnc
NOVNCSRC=${NOVNCDIR}.tgz
2014-06-13 11:20:55 +04:00
NOVNCVER=0.4
2014-06-13 09:29:42 +04:00
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell cat .git/refs/heads/master)
2014-06-13 09:29:42 +04:00
2014-06-13 11:20:55 +04:00
DEB=${PACKAGE}_${NOVNCVER}-${PKGREL}_${ARCH}.deb
2014-06-13 09:29:42 +04:00
all: deb
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
.PHONY: deb
deb ${DEB}: ${TARSRC}
rm -rf ${NOVNCDIR}
tar xf ${NOVNCSRC}
2014-06-13 11:20:55 +04:00
mv ${NOVNCDIR}/debian ${NOVNCDIR}/debian.org
cp -a debian ${NOVNCDIR}/debian
# fix file permissions
chmod 0644 ${NOVNCDIR}/include/jsunzip.js
echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${NOVNCDIR}/debian/SOURCE
2014-06-13 09:29:42 +04:00
cd ${NOVNCDIR}; dpkg-buildpackage -b -uc -us
2014-06-13 11:20:55 +04:00
lintian ${DEB}
2014-06-13 09:29:42 +04:00
.PHONY: download
download:
rm -rf ${NOVNCDIR}
git clone git://github.com/kanaka/noVNC ${NOVNCDIR}
tar czf ${NOVNCSRC} ${NOVNCDIR}
.PHONY: clean
clean:
2014-06-13 11:20:55 +04:00
rm -rf *~ debian/*~ *_${ARCH}.deb *_all.deb *.changes *.dsc novnc