From e59a960a5318939d00a39d8ca48256a36b85a669 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 24 May 2023 16:21:53 +0200 Subject: [PATCH] buildsys: add DSC target Signed-off-by: Thomas Lamprecht --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index fe587e0..ce3d3bc 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ include /usr/share/dpkg/pkg-info.mk PACKAGE=libpve-storage-perl BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION) +DSC=$(PACKAGE)_$(DEB_VERSION).dsc GITVERSION:=$(shell git rev-parse HEAD) @@ -34,3 +35,11 @@ clean: .PHONY: upload upload: $(DEB) tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye + +dsc: $(DSC) + $(MAKE) clean + $(MAKE) $(DSC) + lintian $(DSC) + +$(DSC): $(BUILDDIR) + cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d