]> git.proxmox.com Git - lxc.git/blame - Makefile
bump version to 3.0.2+pve1-4
[lxc.git] / Makefile
CommitLineData
b76bfba9 1PACKAGE=lxc-pve
f46e8fbf 2LXCVER=3.0.2+pve1
03d77c24 3DEBREL=4
70e0da62 4
b76bfba9 5SRCDIR=lxc
c63c177d 6BUILDSRC := $(PACKAGE)-$(LXCVER)
70e0da62 7
9108d962 8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
70e0da62 9
c63c177d
WB
10DEB_BASE=$(PACKAGE)_$(LXCVER)-$(DEBREL)
11DEB1=$(DEB_BASE)_$(ARCH).deb
12DEB2=$(PACKAGE)-dev_$(LXCVER)-$(DEBREL)_$(ARCH).deb \
13 $(PACKAGE)-dbgsym_$(LXCVER)-$(DEBREL)_$(ARCH).deb
30da3479 14DEBS=$(DEB1) $(DEB2)
c63c177d
WB
15DSC=$(DEB_BASE).dsc
16TARGZ=$(DEB_BASE).tar.gz
70e0da62 17
c63c177d
WB
18all: $(DEBS)
19 echo $(DEBS)
9108d962 20
bc7e56ac
WB
21.PHONY: submodule
22submodule:
c63c177d 23 test -f "$(SRCDIR)/debian/changelog" || git submodule update --init
bc7e56ac 24
c63c177d 25$(BUILDSRC): lxc debian config | submodule
bc7e56ac 26 rm -rf $(BUILDSRC)
2d8021b3 27 cp -a $(SRCDIR) $(BUILDSRC)
bc7e56ac 28 cp -a debian $(BUILDSRC)/debian
9cd5bbf7
WB
29 mkdir $(BUILDSRC)/debian/config
30 for i in config/*.conf.in; do \
31 sed -e 's|@LXCTEMPLATECONFIG@|/usr/share/lxc/config|g' $$i > $(BUILDSRC)/debian/$${i%.in} ; \
32 done
c63c177d
WB
33 echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDSRC)/debian/SOURCE
34
35.PHONY: deb
36deb: $(DEBS)
37$(DEB2): $(DEB1)
38$(DEB1): $(BUILDSRC)
39 rm -f *.deb
40 cd $(BUILDSRC); dpkg-buildpackage -b -us -uc
bc7e56ac 41 lintian $(DEBS)
70e0da62 42
c63c177d
WB
43.PHONY: dsc
44dsc $(TARGZ): $(DSC)
45$(DSC): $(BUILDSRC)
46 rm -f *.dsc
47 cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
48 lintian $(DSC)
49
9108d962 50.PHONY: upload
c63c177d
WB
51upload: $(DEBS)
52 tar cf - $(DEBS) | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
9108d962 53
70e0da62
DM
54distclean: clean
55
56.PHONY: clean
57clean:
c63c177d 58 rm -rf $(BUILDSRC) *_$(ARCH).deb *_$(ARCH).dsc *.tar.gz *.changes *.dsc *.buildinfo
9108d962
DM
59
60.PHONY: dinstall
c63c177d
WB
61dinstall: $(DEBS)
62 dpkg -i $(DEBS)