]> git.proxmox.com Git - pve-xtermjs.git/blame - Makefile
rfakeroot is implied
[pve-xtermjs.git] / Makefile
CommitLineData
dcf3d43b
DC
1include defines.mk
2
1dd2d533 3XTERMJSVER=3.12.0
5e8b8730
DC
4XTERMJSTGZ=xterm-${XTERMJSVER}.tgz
5XTERMJSDIR=package
6XTERMDATA = ${XTERMJSDIR}/dist/
7
dcf3d43b
DC
8SRCDIR=src
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11GITVERSION:=$(shell cat .git/refs/heads/master)
12
13DEB=${PACKAGE}_${VERSION}_${ARCH}.deb
14
15all: ${DEB}
16 @echo ${DEB}
17
18.PHONY: deb
19deb: ${DEB}
5e8b8730 20${DEB}: ${XTERMDATA}
dcf3d43b
DC
21 rm -rf ${SRCDIR}.tmp
22 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
23 cp -a debian ${SRCDIR}.tmp/
24 cp -ar ${XTERMJSDIR}/dist/* ${SRCDIR}.tmp/www
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
5e8b8730
DC
30${XTERMDATA}: ${XTERMJSTGZ}
31 rm -rf ${XTTERMDIR}
32 tar -xf ${XTERMJSTGZ}
dcf3d43b
DC
33
34.PHONY: download
60ff38b2 35download ${XTERMJSTGZ}:
5e8b8730
DC
36 wget https://registry.npmjs.org/xterm/-/${XTERMJSTGZ} -O ${XTERMJSTGZ}.tmp
37 mv ${XTERMJSTGZ}.tmp ${XTERMJSTGZ}
dcf3d43b
DC
38
39.PHONY: upload
40upload: ${DEB}
41 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
42
43.PHONY: distclean
44distclean: clean
45
46.PHONY: clean
47clean:
5e8b8730 48 rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp ${XTERMJSDIR} *_all.deb *.changes *.dsc *.buildinfo
dcf3d43b
DC
49
50.PHONY: dinstall
51dinstall: deb
52 dpkg -i ${DEB}