]> git.proxmox.com Git - novnc-pve.git/blame - Makefile
add new rebased patches
[novnc-pve.git] / Makefile
CommitLineData
0fbbbb73 1PACKAGE=novnc-pve
339cafef 2VER=0.5
104710c7 3PKGREL=9
0fbbbb73 4
339cafef 5SRCDIR=novnc
42e49257
DM
6
7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
904d5108 8GITVERSION:=$(shell cat .git/refs/heads/master)
42e49257 9
339cafef 10DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
0fbbbb73 11
339cafef
DC
12all: ${DEB}
13 @echo ${DEB}
42e49257
DM
14
15.PHONY: deb
c3a2bb4f 16deb: ${DEB}
339cafef
DC
17${DEB}: | submodule
18 rm -rf ${SRCDIR}.tmp
19 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
20 cp -a debian ${SRCDIR}.tmp/debian
21 cp ${SRCDIR}.tmp/include/ui.js ${SRCDIR}.tmp/pveui.js
22 cp ${SRCDIR}.tmp/vnc.html ${SRCDIR}.tmp/index.html.tpl
904d5108 23 # fix file permissions
339cafef
DC
24 chmod 0644 ${SRCDIR}.tmp/include/jsunzip.js
25 echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE
26 cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
12de86f0 27 lintian ${DEB}
339cafef
DC
28 @echo ${DEB}
29
30.PHONY: submodule
31submodule:
32 test -f "${SRCDIR}/vnc.html" || git submodule update --init
42e49257
DM
33
34.PHONY: download
339cafef
DC
35download ${SRCDIR}:
36 git submodule foreach 'git pull --ff-only origin master'
42e49257 37
323d6cac
DM
38.PHONY: upload
39upload: ${DEB}
30b9aebb 40 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
323d6cac
DM
41
42.PHONY: distclean
43distclean: clean
44
42e49257
DM
45.PHONY: clean
46clean:
339cafef
DC
47 rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp *_all.deb *.changes *.dsc *.buildinfo
48
49.PHONY: dinstall
50dinstall: deb
51 dpkg -i ${DEB}