]> git.proxmox.com Git - pve-container.git/blame - Makefile
bump version to 5.1.10
[pve-container.git] / Makefile
CommitLineData
bf61be74
TL
1include /usr/share/dpkg/pkg-info.mk
2
f76a2828 3PACKAGE=pve-container
f76a2828 4
0717611b 5GITVERSION:=$(shell git rev-parse HEAD)
d962762a 6BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
f76a2828 7
d962762a
WB
8DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
9DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
f76a2828 10
d962762a 11all: $(DEB)
f76a2828
DM
12
13.PHONY: dinstall
d962762a
WB
14dinstall: $(DEB)
15 dpkg -i $(DEB)
f76a2828 16
c98778d7
WB
17$(BUILDDIR): src debian
18 rm -rf $(BUILDDIR) $(BUILDDIR).tmp; mkdir $(BUILDDIR).tmp
19 cp -t $(BUILDDIR).tmp -a debian src/*
20 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" >$(BUILDDIR).tmp/debian/SOURCE
21 mv $(BUILDDIR).tmp $(BUILDDIR)
74367edd 22
6535fcdb 23.PHONY: deb
d962762a
WB
24deb: $(DEB)
25$(DEB): $(BUILDDIR)
26 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
27 lintian $(DEB)
f76a2828 28
74367edd
TL
29
30.PHONY: dsc
d962762a
WB
31dsc: $(DSC)
32$(DSC): $(BUILDDIR)
f8a70ece 33 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
d962762a 34 lintian $(DSC)
74367edd 35
f8a70ece
WB
36.PHONY: sbuild
37sbuild: $(DSC)
38 sbuild $(DSC)
39
f76a2828
DM
40.PHONY: clean
41clean:
b0873372 42 $(MAKE) -C src clean
60cc27a5
TL
43 rm -rf $(PACKAGE)-[0-9]*/
44 rm -f *.deb *.changes *.build *.buildinfo *.dsc $(PACKAGE)*.tar*
f76a2828
DM
45
46.PHONY: distclean
47distclean: clean
48
49.PHONY: upload
a2c70d78 50upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
d962762a 51upload: $(DEB)
a2c70d78 52 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)