]> git.proxmox.com Git - lxcfs.git/blame - Makefile
fix #1469: merge: uptime: fix a problem with subsequent reads
[lxcfs.git] / Makefile
CommitLineData
270f2667 1PACKAGE=lxcfs
f0a434ca 2PKGVER=2.0.7
bfed1d68 3DEBREL=pve3
270f2667
DM
4
5SRCDIR=${PACKAGE}
6SRCTAR=${SRCDIR}.tgz
7
8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9GITVERSION:=$(shell cat .git/refs/heads/master)
10
fde1adc6
WB
11DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_${ARCH}.deb
12DEB2=${PACKAGE}-dbg_${PKGVER}-${DEBREL}_${ARCH}.deb
13DEBS=$(DEB1) $(DEB2)
270f2667
DM
14
15all: ${DEB}
16
261830cd 17.PHONY: deb
fde1adc6
WB
18deb: $(DEBS)
19$(DEB2): $(DEB1)
20$(DEB1): $(SRCTAR)
270f2667
DM
21 rm -rf ${SRCDIR}
22 tar xf ${SRCTAR}
23 cp -a debian ${SRCDIR}/debian
1c4b58b6
DM
24 echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
25 echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
270f2667 26 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
fde1adc6 27 #lintian $(DEB)
270f2667
DM
28
29
30.PHONY: download
31download ${SRCTAR}:
32 rm -rf ${SRCDIR} ${SRCTAR}
71d1a2c8 33 git clone --depth=1 -b lxcfs-${PKGVER} git://github.com/lxc/lxcfs
270f2667
DM
34 tar czf ${SRCTAR}.tmp ${SRCDIR}
35 mv ${SRCTAR}.tmp ${SRCTAR}
36
37.PHONY: upload
fde1adc6 38upload: $(DEBS)
6d9f43e0 39 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
270f2667
DM
40
41distclean: clean
42
43.PHONY: clean
44clean:
6d9f43e0 45 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo
270f2667
DM
46 find . -name '*~' -exec rm {} ';'
47
48.PHONY: dinstall
fde1adc6
WB
49dinstall: $(DEBS)
50 dpkg -i $(DEBS)