]> git.proxmox.com Git - proxmox-kernel-helper.git/blame - Makefile
bump version to 8.1.0
[proxmox-kernel-helper.git] / Makefile
CommitLineData
138e5330 1include /usr/share/dpkg/pkg-info.mk
43a34d06 2
d0c5b67b 3PACKAGE=proxmox-kernel-helper
5999d616 4BUILDDIR=$(PACKAGE)-$(DEB_VERSION_UPSTREAM)
43a34d06 5
4d10f407 6DSC=$(PACKAGE)_$(DEB_VERSION).dsc
d0c5b67b 7DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
43a34d06 8
050577f6 9.PHONY: deb
e326e685 10deb: $(DEB)
43a34d06 11
5999d616 12$(BUILDDIR): debian src
d0c5b67b 13 rm -rf $@ $@.tmp
5999d616
TL
14 cp -a src $@.tmp
15 cp -a debian $@.tmp/
d0c5b67b
TL
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
e326e685 21 lintian $(DEB)
b3d47d2d 22
4d10f407
TL
23dsc: clean
24 $(MAKE) $(DSC)
25 lintian $(DSC)
26
27$(DSC): $(BUILDDIR)
28 cd $(BUILDDIR); dpkg-buildpackage -S -uc -us -d
29
30sbuild: $(DSC)
31 sbuild $<
32
43a34d06 33.PHONY: upload
90a43e7d 34upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
e326e685 35upload: $(DEB)
90a43e7d 36 tar cf - $(DEB)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
43a34d06 37
138e5330 38.PHONY: clean distclean
43a34d06 39distclean: clean
43a34d06 40clean:
5999d616 41 $(MAKE) -C src $@
d0c5b67b 42 rm -rf *~ $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.deb *.dsc *.changes *.build *.buildinfo