mirror of
git://git.proxmox.com/git/novnc-pve.git
synced 2024-12-22 17:34:20 +03:00
6dadd28ae1
allows easier reading
50 lines
1.0 KiB
Makefile
50 lines
1.0 KiB
Makefile
PACKAGE=novnc-pve
|
|
VER=0.6
|
|
PKGREL=4
|
|
|
|
SRCDIR=novnc
|
|
BUILDDIR=${SRCDIR}.tmp
|
|
|
|
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
|
|
GITVERSION:=$(shell git rev-parse HEAD)
|
|
|
|
DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
|
|
|
|
all: ${DEB}
|
|
@echo ${DEB}
|
|
|
|
.PHONY: deb
|
|
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
|
|
|
|
.PHONY: download
|
|
download ${SRCDIR}:
|
|
git submodule foreach 'git pull --ff-only origin master'
|
|
|
|
.PHONY: upload
|
|
upload: ${DEB}
|
|
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
|
|
|
|
.PHONY: dinstall
|
|
dinstall: deb
|
|
dpkg -i ${DEB}
|