]> git.proxmox.com Git - proxmox-kernel-helper.git/blame_incremental - Makefile
debian: wrap-and-sort -tkn
[proxmox-kernel-helper.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=proxmox-kernel-helper
4BUILDDIR=$(PACKAGE)-$(DEB_VERSION_UPSTREAM)
5
6DSC=$(PACKAGE)_$(DEB_VERSION).dsc
7DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
8
9.PHONY: deb
10deb: $(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
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
33.PHONY: upload
34upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
35upload: $(DEB)
36 tar cf - $(DEB)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
37
38.PHONY: clean distclean
39distclean: clean
40clean:
41 $(MAKE) -C src $@
42 rm -rf *~ $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.deb *.dsc *.changes *.build *.buildinfo