]>
Commit | Line | Data |
---|---|---|
0fbbbb73 | 1 | PACKAGE=novnc-pve |
742d9e91 | 2 | VER=0.6 |
dd4387ee | 3 | PKGREL=4 |
0fbbbb73 | 4 | |
339cafef | 5 | SRCDIR=novnc |
6dadd28a | 6 | BUILDDIR=${SRCDIR}.tmp |
42e49257 DM |
7 | |
8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
5f6ca76d TL |
9 | |
10 | GITVERSION:=$(shell git rev-parse HEAD) | |
42e49257 | 11 | |
339cafef | 12 | DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb |
0fbbbb73 | 13 | |
339cafef DC |
14 | all: ${DEB} |
15 | @echo ${DEB} | |
42e49257 DM |
16 | |
17 | .PHONY: deb | |
c3a2bb4f | 18 | deb: ${DEB} |
339cafef | 19 | ${DEB}: | submodule |
6dadd28a TL |
20 | rm -rf ${BUILDDIR} |
21 | cp -rpa ${SRCDIR} ${BUILDDIR} | |
22 | cp -a debian ${BUILDDIR} | |
23 | echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE | |
24 | cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us | |
12de86f0 | 25 | lintian ${DEB} |
339cafef DC |
26 | @echo ${DEB} |
27 | ||
28 | .PHONY: submodule | |
29 | submodule: | |
30 | test -f "${SRCDIR}/vnc.html" || git submodule update --init | |
42e49257 DM |
31 | |
32 | .PHONY: download | |
339cafef DC |
33 | download ${SRCDIR}: |
34 | git submodule foreach 'git pull --ff-only origin master' | |
42e49257 | 35 | |
323d6cac DM |
36 | .PHONY: upload |
37 | upload: ${DEB} | |
30b9aebb | 38 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch |
323d6cac DM |
39 | |
40 | .PHONY: distclean | |
41 | distclean: clean | |
42 | ||
42e49257 DM |
43 | .PHONY: clean |
44 | clean: | |
6dadd28a | 45 | rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo |
339cafef DC |
46 | |
47 | .PHONY: dinstall | |
48 | dinstall: deb | |
49 | dpkg -i ${DEB} |