]>
Commit | Line | Data |
---|---|---|
815c0744 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
0fbbbb73 | 3 | PACKAGE=novnc-pve |
0fbbbb73 | 4 | |
339cafef | 5 | SRCDIR=novnc |
6dadd28a | 6 | BUILDDIR=${SRCDIR}.tmp |
42e49257 | 7 | |
5f6ca76d | 8 | GITVERSION:=$(shell git rev-parse HEAD) |
42e49257 | 9 | |
815c0744 | 10 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
018065f9 | 11 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc |
0fbbbb73 | 12 | |
339cafef DC |
13 | all: ${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 | |
24 | deb: ${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 |
31 | dsc: ${DSC} | |
32 | ${DSC}: ${BUILDDIR} | |
33 | cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d | |
34 | lintian ${DSC} | |
35 | ||
339cafef DC |
36 | .PHONY: submodule |
37 | submodule: | |
018065f9 | 38 | git submodule update --init |
42e49257 DM |
39 | |
40 | .PHONY: download | |
339cafef DC |
41 | download ${SRCDIR}: |
42 | git submodule foreach 'git pull --ff-only origin master' | |
42e49257 | 43 | |
323d6cac DM |
44 | .PHONY: upload |
45 | upload: ${DEB} | |
30b9aebb | 46 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch |
323d6cac DM |
47 | |
48 | .PHONY: distclean | |
49 | distclean: clean | |
50 | ||
42e49257 DM |
51 | .PHONY: clean |
52 | clean: | |
6dadd28a | 53 | rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo |
339cafef DC |
54 | |
55 | .PHONY: dinstall | |
56 | dinstall: deb | |
57 | dpkg -i ${DEB} |