mirror of
https://git.proxmox.com/git/proxmox-mailgateway
synced 2025-04-28 12:59:37 +00:00
buildsys: add dsc generation and sbuild convenience target
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3f94f6cc44
commit
bfa4d89c17
16
Makefile
16
Makefile
@ -5,6 +5,7 @@ PACKAGE=proxmox-mailgateway
|
||||
GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
BUILDDIR=$(PACKAGE)-$(DEB_VERSION)
|
||||
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
|
||||
|
||||
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||
CT_DEB=$(PACKAGE)-container_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||
@ -31,10 +32,23 @@ $(DEB): $(BUILDDIR)
|
||||
cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
|
||||
lintian $(DEBS)
|
||||
|
||||
$(DSC): $(BUILDDIR)
|
||||
cd $(BUILDDIR); dpkg-buildpackage -S -uc -us
|
||||
|
||||
.PHONY:dsc
|
||||
dsc: $(DSC)
|
||||
$(MAKE) clean
|
||||
$(MAKE) $(DSC)
|
||||
lintian $(DSC)
|
||||
|
||||
.PHONY: sbuild
|
||||
sbuild: $(DSC)
|
||||
sbuild $(DSC)
|
||||
|
||||
.PHONY: upload
|
||||
upload: $(DEBS)
|
||||
tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye --arch $(ARCH)
|
||||
|
||||
clean:
|
||||
rm -rf $(PACKAGE)-[0-9]*/ *.deb *.buildinfo *.changes
|
||||
rm -rf $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar.* *.deb *.dsc *build *.buildinfo *.changes
|
||||
find . -name '*~' -exec rm {} ';'
|
||||
|
Loading…
Reference in New Issue
Block a user