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