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