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