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