]> git.proxmox.com Git - pve-container.git/blob - Makefile
makefile: convert to simple parenthesis
[pve-container.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=pve-container
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6 BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
7
8 DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
9 DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
10
11 all: $(DEB)
12
13 .PHONY: dinstall
14 dinstall: $(DEB)
15 dpkg -i $(DEB)
16
17 $(BUILDDIR):
18 rm -rf $(BUILDDIR)
19 rsync -a src/ debian $(BUILDDIR)
20 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
21
22 .PHONY: deb
23 deb: $(DEB)
24 $(DEB): $(BUILDDIR)
25 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
26 lintian $(DEB)
27
28
29 .PHONY: dsc
30 dsc: $(DSC)
31 $(DSC): $(BUILDDIR)
32 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
33 lintian $(DSC)
34
35 .PHONY: clean
36 clean:
37 make -C src clean
38 rm -rf *.deb $(PACKAGE)*.tar.gz *.changes *.buildinfo $(DSC) $(PACKAGE)-*/
39 find . -name '*~' -exec rm {} ';'
40
41 .PHONY: distclean
42 distclean: clean
43
44 .PHONY: upload
45 upload: $(DEB)
46 tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye