Added an additional consistency check: an error message is now printed if
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 13 Dec 2009 13:00:39 +0000 (13:00 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 13 Dec 2009 13:00:39 +0000 (13:00 +0000)
the kernel-ib-devel RPM has been installed but not the kernel-ib RPM.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1387 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/Makefile

index a6f50e8..14713ae 100644 (file)
@@ -81,8 +81,14 @@ src/Module.symvers src/Modules.symvers: $(SCST_DIR)/$(MODULE_SYMVERS)
            ) >$@;                                                          \
          fi                                                                \
        else                                                                \
-         echo "  Building against non-OFED InfiniBand kernel headers.";    \
-         cp $< $@;                                                         \
+         if $(OFED_KERNEL_IB_DEVEL_RPM_INSTALLED); then                    \
+           echo "Error: the OFED package kernel-ib has not yet been"       \
+                "installed.";                                              \
+           false;                                                          \
+         else                                                              \
+           echo "  Building against non-OFED InfiniBand kernel headers.";  \
+           cp $< $@;                                                       \
+         fi;                                                               \
        fi
 
 clean: