]> git.proxmox.com Git - pve-xtermjs.git/blame - Makefile
update xterm.js sources to 3.13.2 and move away from tarballs
[pve-xtermjs.git] / Makefile
CommitLineData
dcefe98b
TL
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=pve-xtermjs
4
5export VERSION=${DEB_VERSION_UPSTREAM_REVISION}
dcf3d43b 6
3d800c15 7XTERMJSVER=3.13.2
5e8b8730 8XTERMJSTGZ=xterm-${XTERMJSVER}.tgz
5e8b8730 9
dcf3d43b
DC
10SRCDIR=src
11
dcf3d43b
DC
12GITVERSION:=$(shell cat .git/refs/heads/master)
13
dcefe98b 14DEB=${PACKAGE}_${VERSION}_all.deb
dcf3d43b
DC
15
16all: ${DEB}
17 @echo ${DEB}
18
19.PHONY: deb
20deb: ${DEB}
3d800c15 21${DEB}:
dcf3d43b
DC
22 rm -rf ${SRCDIR}.tmp
23 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
24 cp -a debian ${SRCDIR}.tmp/
dcf3d43b 25 echo "git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE
82fddbd9 26 cd ${SRCDIR}.tmp; dpkg-buildpackage -b -uc -us
dcf3d43b
DC
27 lintian ${DEB}
28 @echo ${DEB}
29
dcf3d43b 30
3d800c15
TL
31X_EXCLUSIONS=--exclude=addons/attach --exclude=addons/fullscreen --exclude=addons/search \
32 --exclude=addons/terminado --exclude=addons/webLinks --exclude=addons/zmodem
dcf3d43b 33.PHONY: download
3d800c15 34download:
5e8b8730
DC
35 wget https://registry.npmjs.org/xterm/-/${XTERMJSTGZ} -O ${XTERMJSTGZ}.tmp
36 mv ${XTERMJSTGZ}.tmp ${XTERMJSTGZ}
3d800c15
TL
37 tar -C $(SRCDIR)/www -xf ${XTERMJSTGZ} package/dist --strip-components=2 ${X_EXCLUSIONS}
38 rm ${XTERMJSTGZ}
dcf3d43b
DC
39
40.PHONY: upload
41upload: ${DEB}
42 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
43
44.PHONY: distclean
45distclean: clean
46
47.PHONY: clean
48clean:
5e8b8730 49 rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp ${XTERMJSDIR} *_all.deb *.changes *.dsc *.buildinfo
dcf3d43b
DC
50
51.PHONY: dinstall
52dinstall: deb
53 dpkg -i ${DEB}