]> git.proxmox.com Git - criu.git/blame - Makefile
buildsys: use repoman for uploads
[criu.git] / Makefile
CommitLineData
be1d76f4 1RELEASE=5.0
bee2aa9a
DM
2
3PACKAGE=criu
f254e41c 4PKGVER=2.10
bee2aa9a
DM
5DEBREL=1
6
7SRCDIR=criu
8SRCTAR=${SRCDIR}.tgz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11GITVERSION:=$(shell cat .git/refs/heads/master)
12
7c5715a9
WB
13DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_$(ARCH).deb
14DEB_DBG=${PACKAGE}-dbg_${PKGVER}-${DEBREL}_$(ARCH).deb
4bd1b0d3 15DEBS=$(DEB1) $(DEB_DBG)
bee2aa9a
DM
16
17all: ${DEBS}
18 echo ${DEBS}
19
4bd1b0d3
WB
20.PHONY: deb
21deb $(DEB_DBG): $(DEB1)
22$(DEB1): $(SRCTAR)
bee2aa9a
DM
23 rm -rf ${SRCDIR}
24 tar xf ${SRCTAR}
25 cp -a debian ${SRCDIR}/debian
26 echo "git clone git://git.proxmox.com/git/criu.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
27 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
28 lintian ${DEBS}
29
30
31.PHONY: download
f254e41c
WB
32download:
33 rm -rf ${SRCDIR} ${SRCTAR}
34 git clone -b v$(PKGVER) git://github.com/xemul/$(PACKAGE).git
35 tar czf ${SRCTAR}.tmp --exclude=.git ${SRCDIR}
bee2aa9a 36 mv ${SRCTAR}.tmp ${SRCTAR}
2074ce66 37
bee2aa9a
DM
38.PHONY: upload
39upload: ${DEBS}
8e5147c9 40 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
bee2aa9a
DM
41
42distclean: clean
43
44.PHONY: clean
45clean:
46 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
47 find . -name '*~' -exec rm {} ';'
48
49.PHONY: dinstall
50dinstall: ${DEBS}
51 dpkg -i ${DEBS}