]> git.proxmox.com Git - lxcfs.git/blob - Makefile
bump version to 2.0.8-1
[lxcfs.git] / Makefile
1 PACKAGE=lxcfs
2 PKGVER=2.0.8
3 DEBREL=1
4
5 SRCDIR=${PACKAGE}
6 SRCTAR=${SRCDIR}.tgz
7
8 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9 GITVERSION:=$(shell cat .git/refs/heads/master)
10
11 DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_${ARCH}.deb
12 DEB2=${PACKAGE}-dbg_${PKGVER}-${DEBREL}_${ARCH}.deb
13 DEBS=$(DEB1) $(DEB2)
14
15 all: ${DEB}
16
17 .PHONY: deb
18 deb: $(DEBS)
19 $(DEB2): $(DEB1)
20 $(DEB1): $(SRCTAR)
21 rm -rf ${SRCDIR}
22 tar xf ${SRCTAR}
23 cp -a debian ${SRCDIR}/debian
24 echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
25 echo "debian/SOURCE" >> ${SRCDIR}/debian/docs
26 cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
27 #lintian $(DEB)
28
29
30 .PHONY: download
31 download ${SRCTAR}:
32 rm -rf ${SRCDIR} ${SRCTAR}
33 git clone --depth=1 -b lxcfs-${PKGVER} git://github.com/lxc/lxcfs
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 --product pve --dist stretch
40
41 distclean: clean
42
43 .PHONY: clean
44 clean:
45 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo
46
47 .PHONY: dinstall
48 dinstall: $(DEBS)
49 dpkg -i $(DEBS)