From e9c9cc8b6a34e21212c1689342e7f779c7560e48 Mon Sep 17 00:00:00 2001 From: Chesnokov Gleb Date: Mon, 20 Dec 2021 15:28:34 +0300 Subject: [PATCH] Makefile: Introduce the 'make rpm-dkms' For convenience, there is a lack of opportunity to build the SCST dkms and scstadmin packages in a one command. Introduce the 'make rpm-dkms' command that in similar way to 'make rpm' builds SCST dkms rpm packages and then builds scstadmin rpm packages. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 7dee4f530..295949e64 100644 --- a/Makefile +++ b/Makefile @@ -364,6 +364,15 @@ rpm: find -name '*.rpm'; \ fi +rpm-dkms: + $(MAKE) scst-dkms-rpm + $(MAKE) -C scstadmin rpm + @if [ "$$(id -u)" != 0 ]; then \ + echo; \ + echo "The following RPMs have been built:"; \ + find -name '*.rpm'; \ + fi + debian/changelog: debian/changelog.in sed 's/%{scst_version}/$(VERSION)-$(DEBIAN_REVISION)/' \ debian/changelog