]> git.proxmox.com Git - spiceterm.git/blob - Makefile
bump version to 3.3.0
[spiceterm.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2 include /usr/share/dpkg/architecture.mk
3
4 PACKAGE=spiceterm
5
6 GITVERSION:=$(shell cat .git/refs/heads/master)
7 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
8
9 export VERSION=$(DEB_VERSION_UPSTREAM)
10
11 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
12 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
13
14 ${BUILDDIR}: src/ debian/
15 rm -rf $(BUILDDIR)
16 rsync -a src/ debian $(BUILDDIR)
17 echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE
18
19 .PHONY: dsc
20 dsc: ${DSC}
21 ${DSC}: $(BUILDDIR)
22 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
23 lintian ${DSC}
24
25 .PHONY: deb
26 deb: ${DEB}
27 ${DEB}: $(BUILDDIR)
28 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
29 lintian ${DEB}
30
31 .PHONY: dinstall
32 dinstall: ${DEB}
33 dpkg -i ${DEB}
34
35 .PHONY: upload
36 upload: ${DEB}
37 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
38
39 .PHONY: distclean clean
40 distclean: clean
41 clean:
42 rm -rf *~ $(PACKAGE)-*/ *.deb *.changes genfont *.buildinfo *.dsc *.tar.gz