]> git.proxmox.com Git - pve-xtermjs.git/blame - Makefile
buildsys: switch upload dist over to buster
[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 10SRCDIR=src
094d1014 11BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
dcf3d43b
DC
12GITVERSION:=$(shell cat .git/refs/heads/master)
13
dcefe98b 14DEB=${PACKAGE}_${VERSION}_all.deb
094d1014 15DSC=${PACKAGE}_${VERSION}.dsc
dcf3d43b
DC
16
17all: ${DEB}
18 @echo ${DEB}
19
094d1014
TL
20${BUILDDIR}: ${SRCDIR} debian
21 rm -rf ${BUILDDIR}
22 rsync -a ${SRCDIR}/ debian ${BUILDDIR}
23 echo "git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
24
dcf3d43b
DC
25.PHONY: deb
26deb: ${DEB}
094d1014
TL
27${DEB}: ${BUILDDIR}
28 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
dcf3d43b
DC
29 lintian ${DEB}
30 @echo ${DEB}
31
094d1014
TL
32.PHONY: dsc
33dsc: ${DSC}
34${DSC}: ${BUILDDIR}
35 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
36 lintian ${DSC}
dcf3d43b 37
3d800c15
TL
38X_EXCLUSIONS=--exclude=addons/attach --exclude=addons/fullscreen --exclude=addons/search \
39 --exclude=addons/terminado --exclude=addons/webLinks --exclude=addons/zmodem
dcf3d43b 40.PHONY: download
3d800c15 41download:
5e8b8730
DC
42 wget https://registry.npmjs.org/xterm/-/${XTERMJSTGZ} -O ${XTERMJSTGZ}.tmp
43 mv ${XTERMJSTGZ}.tmp ${XTERMJSTGZ}
3d800c15
TL
44 tar -C $(SRCDIR)/www -xf ${XTERMJSTGZ} package/dist --strip-components=2 ${X_EXCLUSIONS}
45 rm ${XTERMJSTGZ}
dcf3d43b
DC
46
47.PHONY: upload
48upload: ${DEB}
14b7aacc 49 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist buster
dcf3d43b
DC
50
51.PHONY: distclean
52distclean: clean
53
54.PHONY: clean
55clean:
094d1014 56 rm -rf *~ debian/*~ ${PACKAGE}-*/ *.deb *.changes *.dsc *.tar.gz *.buildinfo
dcf3d43b
DC
57
58.PHONY: dinstall
59dinstall: deb
60 dpkg -i ${DEB}