summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-08 13:21:24 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-08 13:24:58 -1000
commit03c30046232d2edc47e1a65e0210c8eabee110f8 (patch)
treeaf733fa8df6aa9c0e77d97de1cf68e43ca92dcd3 /Makefile
parent15e0b9e634c154c57cd785744f8e73f322552b55 (diff)
downloadanaconda-03c30046232d2edc47e1a65e0210c8eabee110f8.tar.gz
anaconda-03c30046232d2edc47e1a65e0210c8eabee110f8.tar.xz
anaconda-03c30046232d2edc47e1a65e0210c8eabee110f8.zip
Add install-buildrequires target.
If I clone the anaconda repo on a test system and want to build from the source tree, I have to make sure all of the BuildRequires are installed. 'make install-buildrequires' runs the command I always use.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 542cdcfbd..fe5f17d2a 100644
--- a/Makefile
+++ b/Makefile
@@ -153,3 +153,6 @@ bumpver:
(head -n $$cl anaconda.spec ; echo "$$DATELINE" ; cat newspeclog ; echo ""; cat speclog) > anaconda.spec.new ; \
mv anaconda.spec.new anaconda.spec ; rm -f speclog ; rm -f newspeclog ; \
sed -i "s/Version: $(VERSION)/Version: $$NEWVERSION/" anaconda.spec
+
+install-buildrequires:
+ yum install $$(grep BuildRequires: anaconda.spec | cut -d ' ' -f 2))