]>
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 | |
60bc3cd8 | 13 | all: |
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 | |
23 | deb: ${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 |
30 | dsc: ${DSC} | |
31 | ${DSC}: ${BUILDDIR} | |
32 | cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d | |
33 | lintian ${DSC} | |
34 | ||
339cafef DC |
35 | .PHONY: submodule |
36 | submodule: | |
60bc3cd8 | 37 | test -f "${SRCDIR}/VERSION" || git submodule update --init |
42e49257 DM |
38 | |
39 | .PHONY: download | |
339cafef DC |
40 | download ${SRCDIR}: |
41 | git submodule foreach 'git pull --ff-only origin master' | |
42e49257 | 42 | |
323d6cac DM |
43 | .PHONY: upload |
44 | upload: ${DEB} | |
9c7eca26 | 45 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist bullseye |
323d6cac DM |
46 | |
47 | .PHONY: distclean | |
48 | distclean: clean | |
49 | ||
42e49257 DM |
50 | .PHONY: clean |
51 | clean: | |
60bc3cd8 | 52 | rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz |
339cafef DC |
53 | |
54 | .PHONY: dinstall | |
55 | dinstall: deb | |
56 | dpkg -i ${DEB} |