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