]> git.proxmox.com Git - criu.git/blame - Makefile
update to latest upstream (commit 4a895813ae8bc6420fd1eec2455434fd0f7abf9b)
[criu.git] / Makefile
CommitLineData
bee2aa9a
DM
1RELEASE=4.0
2
3PACKAGE=criu
2074ce66 4PKGVER=1.6.0
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
13DEBS= \
14${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb \
15${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb
16
17all: ${DEBS}
18 echo ${DEBS}
19
20deb ${DEBS}: ${SRCTAR}
21 rm -rf ${SRCDIR}
22 tar xf ${SRCTAR}
23 cp -a debian ${SRCDIR}/debian
24 echo "git clone git://git.proxmox.com/git/criu.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
25 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
26 lintian ${DEBS}
27
28
29.PHONY: download
30download ${SRCTAR}:
31 rm -rf ${SRCDIR} ${SRCTAR} ${SRCTAR}.tmp
32 git clone https://github.com/xemul/${SRCDIR}
33 tar czf ${SRCTAR}.tmp ${SRCDIR}
34 mv ${SRCTAR}.tmp ${SRCTAR}
2074ce66 35
bee2aa9a
DM
36.PHONY: upload
37upload: ${DEBS}
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
39 mkdir -p /pve/${RELEASE}/extra
40 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
41 rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
42 rm -f /pve/${RELEASE}/extra/Packages*
43 cp ${DEBS} /pve/${RELEASE}/extra
44 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
45 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
46
47distclean: clean
48
49.PHONY: clean
50clean:
51 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
52 find . -name '*~' -exec rm {} ';'
53
54.PHONY: dinstall
55dinstall: ${DEBS}
56 dpkg -i ${DEBS}