Never use "make" in makefiles. Only $(MAKE).
authorFrançois Bissey <francois.bissey@canterbury.ac.nz>
Wed, 14 Dec 2016 22:38:23 +0000 (11:38 +1300)
committerFrançois Bissey <francois.bissey@canterbury.ac.nz>
Wed, 14 Dec 2016 22:38:23 +0000 (11:38 +1300)
Makefile
lapack-netlib/CBLAS/Makefile

index 2ae0047..2071e10 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -278,13 +278,13 @@ lapack-timing : large.tgz timing.tgz
 ifndef NOFORTRAN
        (cd $(NETLIB_LAPACK_DIR); $(TAR) zxf ../timing.tgz TIMING)
        (cd $(NETLIB_LAPACK_DIR)/TIMING; $(TAR) zxf ../../large.tgz )
-       make -C $(NETLIB_LAPACK_DIR)/TIMING
+       $(MAKE) -C $(NETLIB_LAPACK_DIR)/TIMING
 endif
 
 
 lapack-test :
        (cd $(NETLIB_LAPACK_DIR)/TESTING && rm -f x* *.out)
-       make -j 1 -C $(NETLIB_LAPACK_DIR)/TESTING xeigtstc  xeigtstd  xeigtsts  xeigtstz  xlintstc  xlintstd  xlintstds  xlintstrfd  xlintstrfz  xlintsts  xlintstz  xlintstzc xlintstrfs xlintstrfc
+       $(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR)/TESTING xeigtstc  xeigtstd  xeigtsts  xeigtstz  xlintstc  xlintstd  xlintstds  xlintstrfd  xlintstrfz  xlintsts  xlintstz  xlintstzc xlintstrfs xlintstrfc
 ifneq ($(CROSS), 1)
        ( cd $(NETLIB_LAPACK_DIR)/INSTALL; ./testlsame; ./testslamch; ./testdlamch; \
         ./testsecond; ./testdsecnd; ./testieee; ./testversion )
@@ -299,7 +299,7 @@ lapack-runtest:
 
 blas-test:
        (cd $(NETLIB_LAPACK_DIR)/BLAS && rm -f x* *.out)
-       make -j 1 -C $(NETLIB_LAPACK_DIR) blas_testing
+       $(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR) blas_testing
        (cd $(NETLIB_LAPACK_DIR)/BLAS && cat *.out)
 
 
index d7ee0c5..947eb47 100644 (file)
@@ -24,4 +24,4 @@ runtst:
        cd testing && $(MAKE) run
        
 example: all
-       cd examples && make all
+       cd examples && $(MAKE) all