]>
Commit | Line | Data |
---|---|---|
1 | include /usr/share/dpkg/pkg-info.mk | |
2 | include /usr/share/dpkg/architecture.mk | |
3 | ||
4 | PACKAGE=libpve-access-control | |
5 | ||
6 | DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb | |
7 | DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc | |
8 | ||
9 | BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM) | |
10 | ||
11 | GITVERSION:=$(shell git rev-parse HEAD) | |
12 | ||
13 | all: | |
14 | ||
15 | .PHONY: dinstall | |
16 | dinstall: 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 | |
26 | deb: $(DEB) | |
27 | $(DEB): $(BUILDDIR) | |
28 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc | |
29 | lintian $(DEB) | |
30 | ||
31 | .PHONY: dsc | |
32 | dsc: $(DSC) | |
33 | $(DSC): $(BUILDDIR) | |
34 | cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d | |
35 | lintian $(DSC) | |
36 | ||
37 | .PHONY: upload | |
38 | upload: $(DEB) | |
39 | tar cf - $(DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_BUILD_ARCH) | |
40 | ||
41 | .PHONY: clean | |
42 | clean: | |
43 | rm -rf $(PACKAGE)-*/ *.deb *.buildinfo *.changes $(PACKAGE)*.tar.gz *.dsc | |
44 | ||
45 | .PHONY: distclean | |
46 | distclean: clean |