]> git.proxmox.com Git - pve-jslint.git/blame - Makefile
add 'Proxmox' to globals
[pve-jslint.git] / Makefile
CommitLineData
46f93004
DM
1PACKAGE=pve-jslint
2VERSION=1.0
a8d28335 3PACKAGERELEASE=4
46f93004
DM
4
5PKGREL=${VERSION}-${PACKAGERELEASE}
be500ccc 6DEB=${PACKAGE}_${PKGREL}_all.deb
0fe26c62 7GITVERSION:=$(shell cat .git/refs/heads/master)
46f93004
DM
8
9all: ${DEB}
10
11.PHONY: dinstall
12dinstall: ${DEB}
13 dpkg -i ${DEB}
14
56406e70
FG
15.PHONY: deb
16deb: ${DEB}
17${DEB}:
46f93004
DM
18 make clean
19 rm -rf dest
20 mkdir dest
21 make DESTDIR=`pwd`/dest install
22 mkdir dest/DEBIAN
23 sed -e 's/@PKGREL@/${PKGREL}/' <control.in >dest/DEBIAN/control
24 mkdir -p dest/usr/share/doc/${PACKAGE}
0fe26c62 25 echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout ${GITVERSION}" > dest/usr/share/doc/${PACKAGE}/SOURCE
46f93004
DM
26 install -m 0644 copyright dest/usr/share/doc/${PACKAGE}
27 install -m 0644 changelog.Debian dest/usr/share/doc/${PACKAGE}
838549fe 28 gzip -n --best dest/usr/share/doc/${PACKAGE}/changelog.Debian
926279b7 29 fakeroot dpkg-deb --build dest
46f93004
DM
30 mv dest.deb ${DEB}
31 rm -rf dest
dbdde453 32 lintian ${DEB}
46f93004
DM
33
34rhinoed_jslint.js: jslint.js rhino.js
35 cat jslint.js rhino.js >$@.tmp
36 mv $@.tmp $@
37
38install: rhinoed_jslint.js jslint
39 mkdir -p ${DESTDIR}/usr/share/${PACKAGE}
40 install -m 0644 rhinoed_jslint.js ${DESTDIR}/usr/share/${PACKAGE}/rhinoed_jslint.js
41 mkdir -p ${DESTDIR}/usr/bin
3949f34e 42 install -m 0755 jslint ${DESTDIR}/usr/bin
46f93004
DM
43
44jslint.js download:
45 wget -O jslint.js http://jslint.com/jslint.js
46
47.PHONY: distclean
48distclean: clean
49
50.PHONY: clean
51clean:
52 rm -rf *~ dest control rhinoed_jslint.js *.deb
53
54.PHONY: upload
55upload: ${DEB}
1c2b442a 56 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch