]> git.proxmox.com Git - pve-jslint.git/blame - Makefile
ignore lintian complaints about JSON no-evil licence
[pve-jslint.git] / Makefile
CommitLineData
3e1b1e17 1include /usr/share/dpkg/pkg-info.mk
46f93004 2
3e1b1e17 3PACKAGE=pve-jslint
f1626066 4
3e1b1e17
TL
5DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
6DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
46f93004 7
f1626066 8GITVERSION:=$(shell git rev-parse HEAD)
3e1b1e17 9BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
914267a9 10
f1626066 11all: ${DEB}
914267a9 12
f1626066 13${BUILDDIR}: src debian
914267a9 14 rm -rf ${BUILDDIR}
f1626066 15 rsync -a src/ debian ${BUILDDIR}
914267a9 16 echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout $(GITVERSION)" > ${BUILDDIR}/debian/SOURCE
46f93004 17
56406e70
FG
18.PHONY: deb
19deb: ${DEB}
914267a9
TL
20${DEB}: ${BUILDDIR}
21 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
dbdde453 22 lintian ${DEB}
46f93004 23
f1626066
TL
24.PHONY: dsc
25dsc: ${DSC}
26${DSC}: ${BUILDDIR}
27 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
28 lintian ${DSC}
46f93004 29
f1626066
TL
30.PHONY: dinstall
31dinstall: ${DEB}
32 dpkg -i ${DEB}
46f93004 33
f1626066
TL
34.PHONY: download
35src/jslint.js download:
36 wget -O src/jslint.js http://jslint.com/jslint.js
46f93004 37
f1626066 38.PHONY: distclean clean
46f93004 39distclean: clean
46f93004 40clean:
f1626066 41 rm -rf *~ ${BUILDDIR} rhinoed_jslint.js *.deb *.dsc *.tar.gz *.changes *.buildinfo
46f93004
DM
42
43.PHONY: upload
44upload: ${DEB}
1c2b442a 45 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch