]> git.proxmox.com Git - lxc.git/blame_incremental - Makefile
bump version to 2.1.1-2
[lxc.git] / Makefile
... / ...
CommitLineData
1PACKAGE=lxc-pve
2LXCVER=2.1.1
3DEBREL=2
4
5SRCDIR=lxc
6BUILDSRC := $(SRCDIR).tmp
7
8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9GITVERSION:=$(shell cat .git/refs/heads/master)
10
11DEB1=${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb
12DEB2=${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb \
13 ${PACKAGE}-dbgsym_${LXCVER}-${DEBREL}_${ARCH}.deb
14DEBS=$(DEB1) $(DEB2)
15
16all: ${DEBS}
17 echo ${DEBS}
18
19.PHONY: submodule
20submodule:
21 test -f "${SRCDIR}/debian/changelog" || git submodule update --init
22
23.PHONY: deb
24deb: ${DEBS}
25$(DEB2): $(DEB1)
26$(DEB1): | submodule
27 rm -f *.deb
28 rm -rf $(BUILDSRC)
29 mkdir $(BUILDSRC)
30 cp -a $(SRCDIR)/* $(BUILDSRC)/
31 cp -a debian $(BUILDSRC)/debian
32 echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC)/debian/SOURCE
33 cd $(BUILDSRC); dpkg-buildpackage -rfakeroot -b -us -uc
34 lintian $(DEBS)
35
36.PHONY: upload
37upload: ${DEBS}
38 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
39
40distclean: clean
41
42.PHONY: clean
43clean:
44 rm -rf $(BUILDSRC) *_${ARCH}.deb *.changes *.dsc *.buildinfo
45
46.PHONY: dinstall
47dinstall: ${DEBS}
48 dpkg -i ${DEBS}