]> git.proxmox.com Git - novnc-pve.git/blame - Makefile
transpile javascript before packaging
[novnc-pve.git] / Makefile
CommitLineData
0fbbbb73 1PACKAGE=novnc-pve
742d9e91
DC
2VER=0.6
3PKGREL=1
0fbbbb73 4
339cafef 5SRCDIR=novnc
42e49257
DM
6
7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
904d5108 8GITVERSION:=$(shell cat .git/refs/heads/master)
42e49257 9
339cafef 10DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
0fbbbb73 11
339cafef
DC
12all: ${DEB}
13 @echo ${DEB}
42e49257
DM
14
15.PHONY: deb
c3a2bb4f 16deb: ${DEB}
339cafef
DC
17${DEB}: | submodule
18 rm -rf ${SRCDIR}.tmp
19 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
1e63d713 20 cp -a debian ${SRCDIR}.tmp/
339cafef
DC
21 echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE
22 cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
12de86f0 23 lintian ${DEB}
339cafef
DC
24 @echo ${DEB}
25
26.PHONY: submodule
27submodule:
28 test -f "${SRCDIR}/vnc.html" || git submodule update --init
42e49257
DM
29
30.PHONY: download
339cafef
DC
31download ${SRCDIR}:
32 git submodule foreach 'git pull --ff-only origin master'
42e49257 33
323d6cac
DM
34.PHONY: upload
35upload: ${DEB}
30b9aebb 36 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
323d6cac
DM
37
38.PHONY: distclean
39distclean: clean
40
42e49257
DM
41.PHONY: clean
42clean:
339cafef
DC
43 rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp *_all.deb *.changes *.dsc *.buildinfo
44
45.PHONY: dinstall
46dinstall: deb
47 dpkg -i ${DEB}