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