]> git.proxmox.com Git - lxc.git/blame - Makefile
bump version to 3.0.0-2
[lxc.git] / Makefile
CommitLineData
b76bfba9 1PACKAGE=lxc-pve
1513a0b5 2LXCVER=3.0.0
5c8b444a 3DEBREL=2
70e0da62 4
b76bfba9 5SRCDIR=lxc
bc7e56ac 6BUILDSRC := $(SRCDIR).tmp
70e0da62 7
9108d962 8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
e15af1ab 9GITVERSION:=$(shell git rev-parse HEAD)
70e0da62 10
30da3479
WB
11DEB1=${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb
12DEB2=${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb \
949a6e9f 13 ${PACKAGE}-dbgsym_${LXCVER}-${DEBREL}_${ARCH}.deb
30da3479 14DEBS=$(DEB1) $(DEB2)
70e0da62 15
9108d962
DM
16all: ${DEBS}
17 echo ${DEBS}
18
bc7e56ac
WB
19.PHONY: submodule
20submodule:
21 test -f "${SRCDIR}/debian/changelog" || git submodule update --init
22
b158cb38
WB
23.PHONY: deb
24deb: ${DEBS}
30da3479 25$(DEB2): $(DEB1)
bc7e56ac
WB
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
9cd5bbf7
WB
32 mkdir $(BUILDSRC)/debian/config
33 for i in config/*.conf.in; do \
34 sed -e 's|@LXCTEMPLATECONFIG@|/usr/share/lxc/config|g' $$i > $(BUILDSRC)/debian/$${i%.in} ; \
35 done
bc7e56ac
WB
36 echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC)/debian/SOURCE
37 cd $(BUILDSRC); dpkg-buildpackage -rfakeroot -b -us -uc
38 lintian $(DEBS)
70e0da62 39
f49c89ac
WB
40.PHONY: update-template-configs
41update-template-configs:
42 test -d lxc-templates || git clone https://github.com/lxc/lxc-templates lxc-templates
43 cd lxc-templates && git pull
44 rm -rf config
45 cp -R lxc-templates/config config
46 rm -f config/*.am config/*.m4
47 git add config
48
9108d962
DM
49.PHONY: upload
50upload: ${DEBS}
0e1943c7 51 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
9108d962 52
70e0da62
DM
53distclean: clean
54
55.PHONY: clean
56clean:
bc7e56ac 57 rm -rf $(BUILDSRC) *_${ARCH}.deb *.changes *.dsc *.buildinfo
9108d962
DM
58
59.PHONY: dinstall
60dinstall: ${DEBS}
61 dpkg -i ${DEBS}