]> git.proxmox.com Git - novnc-pve.git/blame - Makefile
bump version to 1.3.0-1
[novnc-pve.git] / Makefile
CommitLineData
815c0744
TL
1include /usr/share/dpkg/pkg-info.mk
2
0fbbbb73 3PACKAGE=novnc-pve
0fbbbb73 4
339cafef 5SRCDIR=novnc
6dadd28a 6BUILDDIR=${SRCDIR}.tmp
42e49257 7
5f6ca76d 8GITVERSION:=$(shell git rev-parse HEAD)
42e49257 9
815c0744 10DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
018065f9 11DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
0fbbbb73 12
60bc3cd8 13all:
42e49257 14
018065f9
TL
15${SRCDIR}/vnc.html: submodule
16${BUILDDIR}: $(SRCDIR)/vnc.html
6dadd28a
TL
17 rm -rf ${BUILDDIR}
18 cp -rpa ${SRCDIR} ${BUILDDIR}
19 cp -a debian ${BUILDDIR}
20 echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
018065f9
TL
21
22.PHONY: deb
23deb: ${DEB}
24${DEB}: ${BUILDDIR}
25 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
12de86f0 26 lintian ${DEB}
339cafef
DC
27 @echo ${DEB}
28
018065f9
TL
29.PHONY: dsc
30dsc: ${DSC}
31${DSC}: ${BUILDDIR}
32 cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
33 lintian ${DSC}
34
339cafef
DC
35.PHONY: submodule
36submodule:
60bc3cd8 37 test -f "${SRCDIR}/VERSION" || git submodule update --init
42e49257
DM
38
39.PHONY: download
339cafef
DC
40download ${SRCDIR}:
41 git submodule foreach 'git pull --ff-only origin master'
42e49257 42
323d6cac
DM
43.PHONY: upload
44upload: ${DEB}
9c7eca26 45 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist bullseye
323d6cac
DM
46
47.PHONY: distclean
48distclean: clean
49
42e49257
DM
50.PHONY: clean
51clean:
60bc3cd8 52 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz
339cafef
DC
53
54.PHONY: dinstall
55dinstall: deb
56 dpkg -i ${DEB}