]> git.proxmox.com Git - lxc.git/blob - Makefile
also remove the Delegate option from lxc@.service
[lxc.git] / Makefile
1 RELEASE=4.4
2
3 PACKAGE=lxc-pve
4 LXCVER=2.0.7
5 DEBREL=1
6
7 SRCDIR=lxc
8 SRCTAR=${SRCDIR}.tgz
9
10 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11 GITVERSION:=$(shell cat .git/refs/heads/master)
12
13 DEBS= \
14 ${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb \
15 ${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb \
16 ${PACKAGE}-dbg_${LXCVER}-${DEBREL}_${ARCH}.deb
17
18 all: ${DEBS}
19 echo ${DEBS}
20
21 deb ${DEBS}: ${SRCTAR}
22 rm -rf ${SRCDIR}
23 tar xf ${SRCTAR}
24 cp -a debian ${SRCDIR}/debian
25 echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
26 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
27 lintian ${DEBS}
28
29
30 .PHONY: download
31 download ${SRCTAR}:
32 rm -rf ${SRCDIR} ${SRCTAR}
33 git clone -b lxc-${LXCVER} git://github.com/lxc/lxc
34 tar czf ${SRCTAR}.tmp ${SRCDIR}
35 mv ${SRCTAR}.tmp ${SRCTAR}
36
37 .PHONY: upload
38 upload: ${DEBS}
39 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
40
41 distclean: clean
42
43 .PHONY: clean
44 clean:
45 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
46 find . -name '*~' -exec rm {} ';'
47
48 .PHONY: dinstall
49 dinstall: ${DEBS}
50 dpkg -i ${DEBS}