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.
This commit is contained in:
Chesnokov Gleb
2021-12-21 14:23:06 +03:00
committed by Gleb Chesnokov
parent f1a0222f2b
commit e9c9cc8b6a
+9
View File
@@ -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.in >debian/changelog