]> git.proxmox.com Git - lxcfs.git/blame - Makefile
merge: Limit memswlimit by TotalSwap
[lxcfs.git] / Makefile
CommitLineData
975b5018 1RELEASE=4.4
270f2667
DM
2
3PACKAGE=lxcfs
975b5018
WB
4PKGVER=2.0.6
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
a753d80f
TL
13DEB=${PACKAGE}_${PKGVER}-${DEBREL}_${ARCH}.deb \
14 ${PACKAGE}-dbg_${PKGVER}-${DEBREL}_${ARCH}.deb
270f2667
DM
15
16all: ${DEB}
17
261830cd
WB
18.PHONY: deb
19deb: ${DEB}
20${DEB}: ${SRCTAR}
270f2667
DM
21 rm -rf ${SRCDIR}
22 tar xf ${SRCTAR}
23 cp -a debian ${SRCDIR}/debian
1c4b58b6
DM
24 echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
25 echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
270f2667
DM
26 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
27 #lintian ${DEB}
28
29
30.PHONY: download
31download ${SRCTAR}:
32 rm -rf ${SRCDIR} ${SRCTAR}
71d1a2c8 33 git clone --depth=1 -b lxcfs-${PKGVER} git://github.com/lxc/lxcfs
270f2667
DM
34 tar czf ${SRCTAR}.tmp ${SRCDIR}
35 mv ${SRCTAR}.tmp ${SRCTAR}
36
37.PHONY: upload
38upload: ${DEB}
39 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
40 mkdir -p /pve/${RELEASE}/extra
41 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
98fe0efe 42 rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
270f2667
DM
43 rm -f /pve/${RELEASE}/extra/Packages*
44 cp ${DEB} /pve/${RELEASE}/extra
45 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
46 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
47
48distclean: clean
49
50.PHONY: clean
51clean:
52 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
53 find . -name '*~' -exec rm {} ';'
54
55.PHONY: dinstall
56dinstall: ${DEB}
57 dpkg -i ${DEB}