]> git.proxmox.com Git - novnc-pve.git/blame_incremental - Makefile
add DSC source package and fix its reported lintian errors
[novnc-pve.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=novnc-pve
4
5SRCDIR=novnc
6BUILDDIR=${SRCDIR}.tmp
7
8GITVERSION:=$(shell git rev-parse HEAD)
9
10DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
11DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
12
13all: ${DEB}
14 @echo ${DEB}
15
16${SRCDIR}/vnc.html: submodule
17${BUILDDIR}: $(SRCDIR)/vnc.html
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
22
23.PHONY: deb
24deb: ${DEB}
25${DEB}: ${BUILDDIR}
26 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
27 lintian ${DEB}
28 @echo ${DEB}
29
30.PHONY: dsc
31dsc: ${DSC}
32${DSC}: ${BUILDDIR}
33 cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
34 lintian ${DSC}
35
36.PHONY: submodule
37submodule:
38 git submodule update --init
39
40.PHONY: download
41download ${SRCDIR}:
42 git submodule foreach 'git pull --ff-only origin master'
43
44.PHONY: upload
45upload: ${DEB}
46 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
47
48.PHONY: distclean
49distclean: clean
50
51.PHONY: clean
52clean:
53 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
54
55.PHONY: dinstall
56dinstall: deb
57 dpkg -i ${DEB}