]> git.proxmox.com Git - spiceterm.git/blob - Makefile
rework buildsystem, move to own src folder
[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
13 .PHONY: deb
14 deb: ${DEB}
15 ${DEB}:
16 rm -rf $(BUILDDIR)
17 rsync -a src/ debian $(BUILDDIR)
18 echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE
19 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
20 lintian ${DEB}
21
22 .PHONY: dinstall
23 dinstall: ${DEB}
24 dpkg -i ${DEB}
25
26 .PHONY: upload
27 upload: ${DEB}
28 tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
29
30 .PHONY: distclean clean
31 distclean: clean
32 clean:
33 rm -rf *~ $(BUILDDIR) *.deb *.changes genfont *.buildinfo