buildsys: add sbuild convenience target

and only call lintian on the source-package for the phony dsc target,
as sbuild calls it anyways

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2023-06-16 17:50:19 +02:00
parent 1bd7041278
commit 5ed9f5caa5

View File

@ -45,9 +45,15 @@ $(DEB) $(DBG_DEB): build
.PHONY: dsc
dsc: $(DSC)
$(MAKE) $(DSC)
lintian $(DSC)
$(DSC): build
cd build; dpkg-buildpackage -S -us -uc -d -nc
lintian $(DSC)
.PHONY: sbuild
sbuild: $(DSC)
sbuild $(DSC)
.PHONY: dinstall
dinstall: $(DEB)
@ -62,5 +68,5 @@ distclean: clean
.PHONY: clean
clean:
rm -rf *.deb $(PACKAGE)-* *.buildinfo *.changes *.dsc rust-$(PACKAGE)_*.tar.?z build/
rm -rf *.deb $(PACKAGE)-* *.buildinfo *.changes *.dsc rust-$(PACKAGE)_*.tar.?z build/ *build
find . -name '*~' -exec rm {} ';'