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

50 lines
1.0 KiB
Makefile
Raw Normal View History

2014-06-13 11:20:55 +04:00
PACKAGE=novnc-pve
VER=1.0.0
PKGREL=3
2014-06-13 11:20:55 +04:00
SRCDIR=novnc
BUILDDIR=${SRCDIR}.tmp
2014-06-13 09:29:42 +04:00
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell git rev-parse HEAD)
2014-06-13 09:29:42 +04:00
DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
2014-06-13 11:20:55 +04:00
all: ${DEB}
@echo ${DEB}
2014-06-13 09:29:42 +04:00
.PHONY: deb
2017-02-07 17:40:30 +03:00
deb: ${DEB}
${DEB}: | submodule
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
cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
lintian ${DEB}
@echo ${DEB}
.PHONY: submodule
submodule:
test -f "${SRCDIR}/vnc.html" || 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 stretch
.PHONY: distclean
distclean: clean
2014-06-13 09:29:42 +04:00
.PHONY: clean
clean:
rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}