]> git.proxmox.com Git - lxcfs.git/blame - Makefile
Add quilt, libpam0g-dev to Build-Depends
[lxcfs.git] / Makefile
CommitLineData
eeb9acb5 1RELEASE=4.1
270f2667
DM
2
3PACKAGE=lxcfs
eeb9acb5 4PKGVER=0.13
cd3fb58f 5DEBREL=pve3
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
32 tar czf ${SRCTAR}.tmp ${SRCDIR}
33 mv ${SRCTAR}.tmp ${SRCTAR}
34
35.PHONY: upload
36upload: ${DEB}
37 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
38 mkdir -p /pve/${RELEASE}/extra
39 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
98fe0efe 40 rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb
270f2667
DM
41 rm -f /pve/${RELEASE}/extra/Packages*
42 cp ${DEB} /pve/${RELEASE}/extra
43 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
44 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
45
46distclean: clean
47
48.PHONY: clean
49clean:
50 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
51 find . -name '*~' -exec rm {} ';'
52
53.PHONY: dinstall
54dinstall: ${DEB}
55 dpkg -i ${DEB}