]> git.proxmox.com Git - lxcfs.git/blame - Makefile
Update upstream post clone/fork fix
[lxcfs.git] / Makefile
CommitLineData
eeb9acb5 1RELEASE=4.1
270f2667
DM
2
3PACKAGE=lxcfs
f32f1d02
FG
4PKGVER=2.0.0
5DEBREL=pve1
270f2667
DM
6
7SRCDIR=${PACKAGE}
8SRCTAR=${SRCDIR}.tgz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11GITVERSION:=$(shell cat .git/refs/heads/master)
12
98fe0efe
WB
13DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb \
14 ${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb
270f2667
DM
15
16all: ${DEB}
17
18deb ${DEB}: ${SRCTAR}
19 rm -rf ${SRCDIR}
20 tar xf ${SRCTAR}
21 cp -a debian ${SRCDIR}/debian
1c4b58b6
DM
22 echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
23 echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
270f2667
DM
24 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
25 #lintian ${DEB}
26
27
28.PHONY: download
29download ${SRCTAR}:
30 rm -rf ${SRCDIR} ${SRCTAR}
31 git clone git://github.com/lxc/lxcfs
4bcc26f9 32 cd lxcfs; git reset --hard f0f8b8511938cc680150d782a3add0ee4d60fb01
270f2667
DM
33 tar czf ${SRCTAR}.tmp ${SRCDIR}
34 mv ${SRCTAR}.tmp ${SRCTAR}
35
36.PHONY: upload
37upload: ${DEB}
38 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
39 mkdir -p /pve/${RELEASE}/extra
40 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
98fe0efe 41 rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
270f2667
DM
42 rm -f /pve/${RELEASE}/extra/Packages*
43 cp ${DEB} /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: ${DEB}
56 dpkg -i ${DEB}