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