]> git.proxmox.com Git - novnc-pve.git/blame_incremental - Makefile
update noVNC to v1.2.0
[novnc-pve.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=novnc-pve
4
5SRCDIR=novnc
6BUILDDIR=${SRCDIR}.tmp
7
8GITVERSION:=$(shell git rev-parse HEAD)
9
10DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
11DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
12
13all:
14
15${SRCDIR}/vnc.html: submodule
16${BUILDDIR}: $(SRCDIR)/vnc.html
17 rm -rf ${BUILDDIR}
18 cp -rpa ${SRCDIR} ${BUILDDIR}
19 cp -a debian ${BUILDDIR}
20 echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
21
22.PHONY: deb
23deb: ${DEB}
24${DEB}: ${BUILDDIR}
25 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
26 lintian ${DEB}
27 @echo ${DEB}
28
29.PHONY: dsc
30dsc: ${DSC}
31${DSC}: ${BUILDDIR}
32 cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
33 lintian ${DSC}
34
35.PHONY: submodule
36submodule:
37 test -f "${SRCDIR}/VERSION" || git submodule update --init
38
39.PHONY: download
40download ${SRCDIR}:
41 git submodule foreach 'git pull --ff-only origin master'
42
43.PHONY: upload
44upload: ${DEB}
45 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist buster
46
47.PHONY: distclean
48distclean: clean
49
50.PHONY: clean
51clean:
52 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz
53
54.PHONY: dinstall
55dinstall: deb
56 dpkg -i ${DEB}