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