]> git.proxmox.com Git - lxcfs.git/blame - Makefile
use quilt
[lxcfs.git] / Makefile
CommitLineData
270f2667
DM
1RELEASE=4.0
2
3PACKAGE=lxcfs
4PKGVER=0.7
5DEBREL=pve1
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
21 echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
22 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
23 #lintian ${DEB}
24
25
26.PHONY: download
27download ${SRCTAR}:
28 rm -rf ${SRCDIR} ${SRCTAR}
29 git clone git://github.com/lxc/lxcfs
30 tar czf ${SRCTAR}.tmp ${SRCDIR}
31 mv ${SRCTAR}.tmp ${SRCTAR}
32
33.PHONY: upload
34upload: ${DEB}
35 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
36 mkdir -p /pve/${RELEASE}/extra
37 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
38 rm -f /pve/${RELEASE}/extra/Packages*
39 cp ${DEB} /pve/${RELEASE}/extra
40 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
42
43distclean: clean
44
45.PHONY: clean
46clean:
47 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
48 find . -name '*~' -exec rm {} ';'
49
50.PHONY: dinstall
51dinstall: ${DEB}
52 dpkg -i ${DEB}