]> git.proxmox.com Git - lxcfs.git/blame - Makefile
update to latest upstream
[lxcfs.git] / Makefile
CommitLineData
270f2667
DM
1RELEASE=4.0
2
3PACKAGE=lxcfs
1c4b58b6 4PKGVER=0.9
b3d0d459 5DEBREL=pve2
270f2667
DM
6
7SRCDIR=${PACKAGE}
8SRCTAR=${SRCDIR}.tgz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11GITVERSION:=$(shell cat .git/refs/heads/master)
12
13DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb
14
15all: ${DEB}
16
17deb ${DEB}: ${SRCTAR}
18 rm -rf ${SRCDIR}
19 tar xf ${SRCTAR}
20 cp -a debian ${SRCDIR}/debian
1c4b58b6
DM
21 echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
22 echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
270f2667
DM
23 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
24 #lintian ${DEB}
25
26
27.PHONY: download
28download ${SRCTAR}:
29 rm -rf ${SRCDIR} ${SRCTAR}
30 git clone git://github.com/lxc/lxcfs
31 tar czf ${SRCTAR}.tmp ${SRCDIR}
32 mv ${SRCTAR}.tmp ${SRCTAR}
33
34.PHONY: upload
35upload: ${DEB}
36 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
37 mkdir -p /pve/${RELEASE}/extra
38 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
39 rm -f /pve/${RELEASE}/extra/Packages*
40 cp ${DEB} /pve/${RELEASE}/extra
41 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
42 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
43
44distclean: clean
45
46.PHONY: clean
47clean:
48 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
49 find . -name '*~' -exec rm {} ';'
50
51.PHONY: dinstall
52dinstall: ${DEB}
53 dpkg -i ${DEB}