]> git.proxmox.com Git - novnc-pve.git/blobdiff - Makefile
update patch to correctly hide the clipboard button
[novnc-pve.git] / Makefile
index 2de308871e9cc0ead6141fc397b0cd3b60cbd81f..4f64bbe599a945a116accc6816933852b009a830 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,24 +8,33 @@ BUILDDIR=${SRCDIR}.tmp
 GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
-all: ${DEB}
-       @echo ${DEB}
+all:
 
-.PHONY: deb
-deb: ${DEB}
-${DEB}: | submodule
+${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
-       cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
+
+.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}/vnc.html" || git submodule update --init
+       test -f "${SRCDIR}/VERSION" || git submodule update --init
 
 .PHONY: download
 download ${SRCDIR}:
@@ -33,14 +42,14 @@ download ${SRCDIR}:
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
+       tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist bullseye
 
 .PHONY: distclean
 distclean: clean
 
 .PHONY: clean
 clean:
-       rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
+       rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz
 
 .PHONY: dinstall
 dinstall: deb