Fixed #16. Print the user-friendly message when detecting CPU failed.
authorXianyi Zhang <xianyi@iscas.ac.cn>
Fri, 22 Apr 2011 14:14:06 +0000 (22:14 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Fri, 22 Apr 2011 14:14:06 +0000 (22:14 +0800)
Makefile

index 52f649f..77dd3c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,6 +96,9 @@ endif
 endif
 
 libs :
+ifeq ($(CORE), UNKOWN)
+       $(error OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.)
+endif
        -ln -fs $(LIBNAME) libopenblas.$(LIBSUFFIX)
        for d in $(SUBDIRS) ; \
        do if test -d $$d; then \