]> git.proxmox.com Git - novnc-pve.git/blame - Makefile
add DSC source package and fix its reported lintian errors
[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
339cafef
DC
13all: ${DEB}
14 @echo ${DEB}
42e49257 15
018065f9
TL
16${SRCDIR}/vnc.html: submodule
17${BUILDDIR}: $(SRCDIR)/vnc.html
6dadd28a
TL
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
018065f9
TL
22
23.PHONY: deb
24deb: ${DEB}
25${DEB}: ${BUILDDIR}
26 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
12de86f0 27 lintian ${DEB}
339cafef
DC
28 @echo ${DEB}
29
018065f9
TL
30.PHONY: dsc
31dsc: ${DSC}
32${DSC}: ${BUILDDIR}
33 cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
34 lintian ${DSC}
35
339cafef
DC
36.PHONY: submodule
37submodule:
018065f9 38 git submodule update --init
42e49257
DM
39
40.PHONY: download
339cafef
DC
41download ${SRCDIR}:
42 git submodule foreach 'git pull --ff-only origin master'
42e49257 43
323d6cac
DM
44.PHONY: upload
45upload: ${DEB}
30b9aebb 46 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
323d6cac
DM
47
48.PHONY: distclean
49distclean: clean
50
42e49257
DM
51.PHONY: clean
52clean:
6dadd28a 53 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
339cafef
DC
54
55.PHONY: dinstall
56dinstall: deb
57 dpkg -i ${DEB}