]> git.proxmox.com Git - pve-eslint.git/blobdiff - Makefile
fixup! import 8.3.0 source
[pve-eslint.git] / Makefile
index d264323876439500658c5eca79e1d9fe6df33fc3..de67eb03d1222307acc0af83cc626d547a2f4797 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,24 +6,35 @@ GITVERSION:=$(shell git rev-parse HEAD)
 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 SRCDIR=src
 UPSTREAM=eslint
-UPSTREAMTAG=v7.0.0-alpha.3
+UPSTREAMTAG=v8.3.0
 BUILDSRC=${UPSTREAM}-${UPSTREAMTAG}
 
 all: ${DEB}
        @echo ${DEB}
 
-.PHONY: deb
-deb: ${DEB}
-${DEB}: ${SRCDIR}
+.PHONY: dsc deb builddir
+
+${BUILDDIR}: builddir
+builddir: ${SRCDIR}
        rm -rf ${BUILDDIR}
        mkdir ${BUILDDIR}
        cp -a debian ${BUILDDIR}/
        cp -a ${SRCDIR}/* ${BUILDDIR}/
        echo "git clone git://git.proxmox.com/git/pve-eslint.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
-       cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
+
+
+dsc: ${DSC}
+${DSC}: builddir
+       cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us
+       lintian ${DSC}
+
+deb: ${DEB}
+${DEB}: builddir
+       cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
        lintian ${DEB}
        @echo ${DEB}
 
@@ -38,7 +49,7 @@ download:
 # NOTE: needs npm installed, downloads packages from npm
 .PHONY: buildupstream
 buildupstream: ${BUILDSRC}
-       cp ${BUILDSRC}/build/eslint.js ${SRCDIR}/eslint.js
+       cp ${BUILDSRC}/build/eslint.js ${SRCDIR}/lib/eslint.js
 
 ${BUILDSRC}: ${UPSTREAM} patches
        rm -rf $@
@@ -53,14 +64,14 @@ ${BUILDSRC}: ${UPSTREAM} patches
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist buster
+       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 ${BUILDSRC} ${BUILDSRC}.tmp ${UPSTREAM}.tmp ${BUILDDIR} *.changes *.dsc *.buildinfo
+       rm -rf *~ debian/*~ *.deb ${BUILDSRC} *.tmp/ ${BUILDDIR} *.changes *.tar.gz *.dsc *.buildinfo
 
 .PHONY: dinstall
 dinstall: deb