5
0
mirror of git://git.proxmox.com/git/novnc-pve.git synced 2025-01-03 05:17:56 +03:00
novnc-pve/Makefile

57 lines
1.2 KiB
Makefile
Raw Normal View History

include /usr/share/dpkg/pkg-info.mk
2014-06-13 11:20:55 +04:00
PACKAGE=novnc-pve
SRCDIR=novnc
BUILDDIR=${SRCDIR}.tmp
2014-06-13 09:29:42 +04:00
GITVERSION:=$(shell git rev-parse HEAD)
2014-06-13 09:29:42 +04:00
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
2014-06-13 11:20:55 +04:00
all:
2014-06-13 09:29:42 +04:00
${SRCDIR}/vnc.html: submodule
${BUILDDIR}: $(SRCDIR)/vnc.html
rm -rf ${BUILDDIR}
cp -rpa ${SRCDIR} ${BUILDDIR}
cp -a debian ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
.PHONY: deb
deb: ${DEB}
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
lintian ${DEB}
@echo ${DEB}
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
lintian ${DSC}
.PHONY: submodule
submodule:
test -f "${SRCDIR}/package.json" || git submodule update --init
2014-06-13 09:29:42 +04:00
.PHONY: download
download ${SRCDIR}:
git submodule foreach 'git pull --ff-only origin master'
2014-06-13 09:29:42 +04:00
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist bullseye
.PHONY: distclean
distclean: clean
2014-06-13 09:29:42 +04:00
.PHONY: clean
clean:
rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}