RPM targets in makefile

This commit is contained in:
Imbus 2024-06-09 02:20:51 +02:00
parent c43aed2fcd
commit ffac420762

View file

@ -40,3 +40,13 @@ uninstall:
rm -f ~/.local/share/applications/$(PROJ_NAME).desktop rm -f ~/.local/share/applications/$(PROJ_NAME).desktop
rm -f ~/.local/share/icons/$(PROJ_NAME).svg rm -f ~/.local/share/icons/$(PROJ_NAME).svg
update-desktop-database ~/.local/share/applications/ update-desktop-database ~/.local/share/applications/
# Install the dependencies for building the RPM package
rpm-deps:
sudo dnf install rpmdevtools
sudo dnf builddep packaging/$(PROJECT).spec
# This step requires the rpm-deps specified above
rpm:
spectool -g -R packaging/$(PROJECT).spec
rpmbuild -bb packaging/$(PROJECT).spec