]> git.proxmox.com Git - lxc.git/blame - Makefile
bump version to 2.0.8-1
[lxc.git] / Makefile
CommitLineData
b76bfba9 1PACKAGE=lxc-pve
7395ab25
WB
2LXCVER=2.0.8
3DEBREL=1
70e0da62 4
b76bfba9 5SRCDIR=lxc
70e0da62
DM
6SRCTAR=${SRCDIR}.tgz
7
9108d962
DM
8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9GITVERSION:=$(shell cat .git/refs/heads/master)
70e0da62 10
30da3479
WB
11DEB1=${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb
12DEB2=${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb \
13 ${PACKAGE}-dbg_${LXCVER}-${DEBREL}_${ARCH}.deb
14DEBS=$(DEB1) $(DEB2)
70e0da62 15
9108d962
DM
16all: ${DEBS}
17 echo ${DEBS}
18
b158cb38
WB
19.PHONY: deb
20deb: ${DEBS}
30da3479
WB
21$(DEB2): $(DEB1)
22$(DEB1): ${SRCTAR}
9108d962
DM
23 rm -rf ${SRCDIR}
24 tar xf ${SRCTAR}
25 cp -a debian ${SRCDIR}/debian
26 echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
27 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
28 lintian ${DEBS}
29
30
31.PHONY: download
70e0da62
DM
32download ${SRCTAR}:
33 rm -rf ${SRCDIR} ${SRCTAR}
d2cfdb36 34 git clone -b lxc-${LXCVER} git://github.com/lxc/lxc
70e0da62
DM
35 tar czf ${SRCTAR}.tmp ${SRCDIR}
36 mv ${SRCTAR}.tmp ${SRCTAR}
37
9108d962
DM
38.PHONY: upload
39upload: ${DEBS}
0e1943c7 40 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
9108d962 41
70e0da62
DM
42distclean: clean
43
44.PHONY: clean
45clean:
6047286b 46 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo
70e0da62 47 find . -name '*~' -exec rm {} ';'
9108d962
DM
48
49.PHONY: dinstall
50dinstall: ${DEBS}
51 dpkg -i ${DEBS}