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