]> git.proxmox.com Git - pve-xtermjs.git/blame - Makefile
bump version to 1.0-2
[pve-xtermjs.git] / Makefile
CommitLineData
dcf3d43b
DC
1include defines.mk
2
3XTERMJSDIR=xtermjs
4SRCDIR=src
5
6ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
7GITVERSION:=$(shell cat .git/refs/heads/master)
8
9DEB=${PACKAGE}_${VERSION}_${ARCH}.deb
10
11all: ${DEB}
12 @echo ${DEB}
13
14.PHONY: deb
15deb: ${DEB}
16${DEB}: | submodule
17 rm -rf ${SRCDIR}.tmp
18 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
19 cp -a debian ${SRCDIR}.tmp/
20 cp -ar ${XTERMJSDIR}/dist/* ${SRCDIR}.tmp/www
21 echo "git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE
22 cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
23 lintian ${DEB}
24 @echo ${DEB}
25
26.PHONY: submodule
27submodule:
28 test -f "${XTERMJSDIR}/README.md" || git submodule update --init
29
30.PHONY: download
31download ${SRCDIR}:
32 git submodule foreach 'git pull --ff-only origin master'
33
34.PHONY: upload
35upload: ${DEB}
36 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
37
38.PHONY: distclean
39distclean: clean
40
41.PHONY: clean
42clean:
43 rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp *_all.deb *.changes *.dsc *.buildinfo
44
45.PHONY: dinstall
46dinstall: deb
47 dpkg -i ${DEB}