]> git.proxmox.com Git - novnc-pve.git/blob - Makefile
bump version to 1.4.0-3
[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 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
12
13 all: ${DEB}
14 @echo ${DEB}
15
16 ${SRCDIR}/vnc.html: submodule
17 ${BUILDDIR}: $(SRCDIR)/vnc.html
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
23 .PHONY: deb
24 deb: ${DEB}
25 ${DEB}: ${BUILDDIR}
26 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
27 lintian ${DEB}
28 @echo ${DEB}
29
30 .PHONY: dsc
31 dsc: ${DSC}
32 ${DSC}: ${BUILDDIR}
33 cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
34 lintian ${DSC}
35
36 .PHONY: submodule
37 submodule:
38 git submodule update --init
39
40 .PHONY: download
41 download ${SRCDIR}:
42 git submodule foreach 'git pull --ff-only origin master'
43
44 .PHONY: upload
45 upload: ${DEB}
46 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist buster
47
48 .PHONY: distclean
49 distclean: clean
50
51 .PHONY: clean
52 clean:
53 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
54
55 .PHONY: dinstall
56 dinstall: deb
57 dpkg -i ${DEB}