From bf6772a13b2db2e6fec2f8dc7b0f0b16269547e2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 16 May 2023 17:48:32 +0200 Subject: [PATCH] buildsys: add dsc target Signed-off-by: Thomas Lamprecht --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f937fb7..61c0c1c 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ LINGUAS=\ BUILDDIR ?= $(DEB_SOURCE)-$(DEB_VERSION) +DSC=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc PVE_I18N_DEB=pve-i18n_$(DEB_VERSION)_all.deb PMG_I18N_DEB=pmg-i18n_$(DEB_VERSION)_all.deb PBS_I18N_DEB=pbs-i18n_$(DEB_VERSION)_all.deb @@ -59,6 +60,12 @@ build-debs: $(BUILDDIR) lintian $(DEBS) touch "$@" +.PHONY: dsc +dsc: $(DSC) +$(DSC): $(BUILDDIR) + cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d + lintian $(DSC) + submodule: test -f pmg-gui/Makefile -a -f proxmox-backup/Makefile -a -f pve-manager/Makefile \ || git submodule update --init @@ -118,7 +125,7 @@ distclean: clean .PHONY: clean clean: - rm -rf $(DEB_SOURCE)-[0-9]*/ *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot + rm -rf $(DEB_SOURCE)-[0-9]*/ *.po.tmp *.js.tmp *.deb *.dsc *.tar.* *.build *.buildinfo *.changes *.js messages.pot .PHONY: upload-pve upload-pmg upload-pbs upload upload-%: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) -- 2.39.2