aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas F Herbert <therbert@redhat.com>2017-03-20 19:19:51 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-27 15:00:57 +0000
commit70efbfcd49aaee207ff3d33ac60083fedd9f1eec (patch)
treef003f8dce633792db340ef7e153b53eee3da7753 /Makefile
parent17f5f6097a1a613aceaa27912d6afb7f9249eaa2 (diff)
Check for missing deps on bootstrap target for Centos and Fedora.
Change-Id: I823a066417fb6205d1e6b0fdf1de17b054f6d312 Signed-off-by: Thomas F Herbert <therbert@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ac571a65..bdf20e89 100644
--- a/Makefile
+++ b/Makefile
@@ -143,6 +143,21 @@ ifeq ($(OS_ID),ubuntu)
exit 1 ; \
fi ; \
exit 0
+else ifneq ("$(wildcard /etc/redhat-release)","")
+ @for i in $(RPM_DEPENDS) $(EPEL_DEPENDS) ; do \
+ RPM=$$(basename -s .rpm "$${i##*/}" | cut -d- -f1,2,3) ; \
+ if [[ "$$RPM" =~ "epel-release-latest" ]] ; then \
+ MISSING+=$$(rpm -q epel-release | grep "^package") ; \
+ else \
+ MISSING+=$$(rpm -q $$RPM | grep "^package") ; \
+ fi ; \
+ done ; \
+ if [ -n "$$MISSING" ] ; then \
+ echo "Please install missing RPMs: \n$$MISSING\n" ; \
+ echo "by executing \"make install-dep\"\n" ; \
+ exit 1 ; \
+ fi ; \
+ exit 0
endif
@echo "SOURCE_PATH = $(WS_ROOT)" > $(BR)/build-config.mk
@echo "#!/bin/bash\n" > $(BR)/path_setup