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