]> git.proxmox.com Git - pve-access-control.git/blame - Makefile
makefile: convert to use simple parenthesis
[pve-access-control.git] / Makefile
CommitLineData
049d789b
TL
1include /usr/share/dpkg/pkg-info.mk
2include /usr/share/dpkg/architecture.mk
3
2c3a6c0a 4PACKAGE=libpve-access-control
2c3a6c0a 5
a3744c5e
TL
6DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
7DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
049d789b 8
a3744c5e 9BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
e235ae39 10
067d625a 11GITVERSION:=$(shell git rev-parse HEAD)
36ad0763 12
98eb404f 13all:
2c3a6c0a
DM
14
15.PHONY: dinstall
16dinstall: deb
a3744c5e 17 dpkg -i $(DEB)
2c3a6c0a 18
a3744c5e
TL
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
e235ae39 24
4e515e6d 25.PHONY: deb
a3744c5e
TL
26deb: $(DEB)
27$(DEB): $(BUILDDIR)
28 cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
29 lintian $(DEB)
2c3a6c0a 30
e235ae39 31.PHONY: dsc
a3744c5e
TL
32dsc: $(DSC)
33$(DSC): $(BUILDDIR)
34 cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
35 lintian $(DSC)
e235ae39 36
2c3a6c0a 37.PHONY: upload
a3744c5e
TL
38upload: $(DEB)
39 tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_BUILD_ARCH)
2c3a6c0a
DM
40
41.PHONY: clean
15cebb28 42clean:
a3744c5e 43 rm -rf $(PACKAGE)-*/ *.deb *.buildinfo *.changes $(PACKAGE)*.tar.gz *.dsc
2c3a6c0a
DM
44
45.PHONY: distclean
46distclean: clean