]> git.proxmox.com Git - lxc.git/blame - Makefile
use new repoman for upload target
[lxc.git] / Makefile
CommitLineData
6edbc648 1RELEASE=4.2
70e0da62 2
b76bfba9 3PACKAGE=lxc-pve
c0f47d2c 4LXCVER=2.0.3
6edbc648 5DEBREL=4
70e0da62 6
b76bfba9 7SRCDIR=lxc
70e0da62
DM
8SRCTAR=${SRCDIR}.tgz
9
9108d962
DM
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11GITVERSION:=$(shell cat .git/refs/heads/master)
70e0da62 12
9108d962
DM
13DEBS= \
14${PACKAGE}_${LXCVER}-${DEBREL}_amd64.deb \
b919c812 15${PACKAGE}-dev_${LXCVER}-${DEBREL}_amd64.deb \
9108d962 16${PACKAGE}-dbg_${LXCVER}-${DEBREL}_amd64.deb
70e0da62 17
9108d962
DM
18all: ${DEBS}
19 echo ${DEBS}
20
21deb ${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
70e0da62
DM
31download ${SRCTAR}:
32 rm -rf ${SRCDIR} ${SRCTAR}
a4ec66d5 33 git clone -b stable-2.0 git://github.com/lxc/lxc
70e0da62
DM
34 tar czf ${SRCTAR}.tmp ${SRCDIR}
35 mv ${SRCTAR}.tmp ${SRCTAR}
36
9108d962
DM
37.PHONY: upload
38upload: ${DEBS}
ec09f354 39 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
9108d962 40
70e0da62
DM
41distclean: clean
42
43.PHONY: clean
44clean:
9108d962 45 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
70e0da62 46 find . -name '*~' -exec rm {} ';'
9108d962
DM
47
48.PHONY: dinstall
49dinstall: ${DEBS}
50 dpkg -i ${DEBS}