]> git.proxmox.com Git - tar.git/blob - Makefile
buildsys: use --no-sign
[tar.git] / Makefile
1 TARVER=1.29b
2 DEBREL=2
3 PVETARVER=${TARVER}+pve.1
4
5 # also update changelog
6
7 TARSRC=tar_${TARVER}.orig.tar.xz
8 TARDEBSRC=tar_${TARVER}-${DEBREL}.debian.tar.xz
9 TARDIR=tar-${TARVER}
10
11 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
12 GITVERSION:=$(shell cat .git/refs/heads/master)
13 SOURCETXT="git clone git://git.proxmox.com/git/tar.git\\ngit checkout ${GITVERSION}"
14
15 DEB=tar_${PVETARVER}_${ARCH}.deb
16
17 all: deb
18
19 .PHONY: dinstall
20 dinstall: ${DEB}
21 dpkg -i ${DEB}
22
23 .PHONY: prepare
24 prepare: $(TARDIR)
25 $(TARDIR): $(TARSRC) $(TARDEBSRC)
26 rm -rf ${TARDIR}
27 tar xf ${TARSRC}
28 tar -C $(TARDIR) -xf $(TARDEBSRC)
29 echo "${SOURCETXT}" > ${TARDIR}/debian/SOURCE
30 echo "debian/SOURCE" >>${TARDIR}/debian/docs
31 mv ${TARDIR}/debian/changelog ${TARDIR}/debian/changelog.org
32 cat changelog ${TARDIR}/debian/changelog.org >${TARDIR}/debian/changelog
33 cd ${TARDIR} && patch -p1 -i ../sparse-unicode.patch
34
35 .PHONY: deb
36 deb: $(DEB)
37 $(DEB): $(TARDIR)
38 cd ${TARDIR} && dpkg-buildpackage -b --no-sign
39
40 .PHONY: upload
41 upload: $(DEB)
42 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
43
44 .PHONY: clean
45 clean:
46 rm -rf *~ *_${ARCH}.deb *_all.deb *_${ARCH}.udeb *.changes *.buildinfo *.dsc ${TARDIR}