]>
Commit | Line | Data |
---|---|---|
3e1b1e17 | 1 | include /usr/share/dpkg/pkg-info.mk |
46f93004 | 2 | |
3e1b1e17 | 3 | PACKAGE=pve-jslint |
f1626066 | 4 | |
3e1b1e17 TL |
5 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
6 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
46f93004 | 7 | |
f1626066 | 8 | GITVERSION:=$(shell git rev-parse HEAD) |
3e1b1e17 | 9 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} |
914267a9 | 10 | |
f1626066 | 11 | all: ${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 |
19 | deb: ${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 |
25 | dsc: ${DSC} | |
26 | ${DSC}: ${BUILDDIR} | |
27 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
28 | lintian ${DSC} | |
46f93004 | 29 | |
f1626066 TL |
30 | .PHONY: dinstall |
31 | dinstall: ${DEB} | |
32 | dpkg -i ${DEB} | |
46f93004 | 33 | |
f1626066 TL |
34 | .PHONY: download |
35 | src/jslint.js download: | |
36 | wget -O src/jslint.js http://jslint.com/jslint.js | |
46f93004 | 37 | |
f1626066 | 38 | .PHONY: distclean clean |
46f93004 | 39 | distclean: clean |
46f93004 | 40 | clean: |
f1626066 | 41 | rm -rf *~ ${BUILDDIR} rhinoed_jslint.js *.deb *.dsc *.tar.gz *.changes *.buildinfo |
46f93004 DM |
42 | |
43 | .PHONY: upload | |
44 | upload: ${DEB} | |
1c2b442a | 45 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch |