]> git.proxmox.com Git - pve-access-control.git/blob - Makefile
buildsys: don't pass arch for an arch: all package
[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 .PHONY: upload
37 upload: $(DEB)
38 tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye
39
40 .PHONY: clean
41 clean:
42 rm -rf $(PACKAGE)-*/ *.deb *.buildinfo *.changes $(PACKAGE)*.tar.gz *.dsc
43
44 .PHONY: distclean
45 distclean: clean