Makefile: provide a 'dist-rpm-install' target
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
e9af2cf8eb
commit
159fe7f2b2
@ -9,6 +9,10 @@ Changes in version 1.8.2
|
||||
* templates/kde4 - Davide Madrisan:
|
||||
Minor updates.
|
||||
|
||||
* Makefile - Davide Madrisan:
|
||||
Provide a 'dist-rpm-install' target to install the rpm packages by a simple
|
||||
'make dist-rpm-install' command.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Changes in version 1.8.1 - Christmas Release
|
||||
|
9
Makefile
9
Makefile
@ -1,5 +1,5 @@
|
||||
# Makefile for autospec
|
||||
# Copyright (C) 2004-2008 by Davide Madrisan <davide.madrisan@gmail.com>
|
||||
# Copyright (C) 2004-2008,2011 by Davide Madrisan <davide.madrisan@gmail.com>
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify it under
|
||||
# the terms of version 2 of the GNU General Public License as published by the
|
||||
@ -181,6 +181,13 @@ dist-rpm: dist $(PACKAGE).spec
|
||||
rpmbuild --clean -ba $$rpm_specdir/$(PACKAGE).spec) || exit 1
|
||||
@echo "All done. Enjoy using $(PACKAGE)..."
|
||||
|
||||
dist-rpm-install: dist-rpm
|
||||
@echo "Installing rpm packages..."
|
||||
@rpm_pckdir=`rpm --eval=%{_rpmdir} 2>/dev/null`;\
|
||||
sudo rpm -hUv --force\
|
||||
$$rpm_pckdir/noarch/$(PACKAGE)-*${VERSION}-${RELEASE}.noarch.rpm\
|
||||
|| exit 1
|
||||
|
||||
clean: mostlyclean
|
||||
rm -f history/$(dist_archive)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user