]> git.proxmox.com Git - novnc-pve.git/blame - Makefile
support new 'cmd' parameter
[novnc-pve.git] / Makefile
CommitLineData
0fbbbb73 1PACKAGE=novnc-pve
c81b80da 2VER=1.0.0
abe37c0a 3PKGREL=2
0fbbbb73 4
339cafef 5SRCDIR=novnc
6dadd28a 6BUILDDIR=${SRCDIR}.tmp
42e49257
DM
7
8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
5f6ca76d
TL
9
10GITVERSION:=$(shell git rev-parse HEAD)
42e49257 11
339cafef 12DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
0fbbbb73 13
339cafef
DC
14all: ${DEB}
15 @echo ${DEB}
42e49257
DM
16
17.PHONY: deb
c3a2bb4f 18deb: ${DEB}
339cafef 19${DEB}: | submodule
6dadd28a
TL
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
12de86f0 25 lintian ${DEB}
339cafef
DC
26 @echo ${DEB}
27
28.PHONY: submodule
29submodule:
30 test -f "${SRCDIR}/vnc.html" || git submodule update --init
42e49257
DM
31
32.PHONY: download
339cafef
DC
33download ${SRCDIR}:
34 git submodule foreach 'git pull --ff-only origin master'
42e49257 35
323d6cac
DM
36.PHONY: upload
37upload: ${DEB}
30b9aebb 38 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
323d6cac
DM
39
40.PHONY: distclean
41distclean: clean
42
42e49257
DM
43.PHONY: clean
44clean:
6dadd28a 45 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
339cafef
DC
46
47.PHONY: dinstall
48dinstall: deb
49 dpkg -i ${DEB}