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