RUN cd np-tmcode/build &&CXX=mpicxx FC=gfortran ./configure --enable-static--enable-mpi--enable-ilp64--enable-openmp--with-lapack--with-magma&& make clean && make -j&&mv cluster/np_cluster cluster/np_cluster_magma_mpi
RUN cd np-tmcode/build &&CXX=g++ FC=gfortran ./configure --enable-static--disable-mpi--enable-ilp64--enable-openmp--with-lapack--with-magma&& make clean && make -j&&mv cluster/np_cluster cluster/np_cluster_magma_serial
#RUN cd np-tmcode/src && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_LAPACK=1 USE_OPENMP=1 USE_MPI=1 CXX=mpicxx FC=gfortran make wipe && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_LAPACK=1 USE_OPENMP=1 USE_MPI=1 CXX=mpicxx FC=gfortran make -j && mv ../build/cluster/np_cluster ../build/cluster/np_cluster_lapack_mpi && cd ../build/cluster && ln -s np_cluster_lapack_mpi np_cluster
RUN cd np-tmcode/build &&CXX=mpicxx FC=gfortran ./configure --enable-static--enable-mpi--enable-ilp64--enable-openmp--with-lapack--without-magma&& make clean && make -j&&mv cluster/np_cluster cluster/np_cluster_lapack_mpi &&cd cluster &&ln-s np_cluster_lapack_mpi np_cluster
#RUN cd np-tmcode/src && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_LAPACK=1 USE_OPENMP=1 CXX=g++ FC=gfortran make wipe && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_LAPACK=1 USE_OPENMP=1 CXX=g++ FC=gfortran make -j && mv ../build/cluster/np_cluster ../build/cluster/np_cluster_lapack_serial
RUN cd np-tmcode/build &&CXX=g++ FC=gfortran ./configure --enable-static--disable-mpi--enable-ilp64--enable-openmp--with-lapack--without-magma&& make clean && make -j&&mv cluster/np_cluster cluster/np_cluster_lapack_serial
#RUN cd np-tmcode/src && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_OPENMP=1 USE_MPI=1 CXX=mpicxx FC=gfortran make wipe && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_OPENMP=1 USE_MPI=1 CXX=mpicxx FC=gfortran make -j && mv ../build/cluster/np_cluster ../build/cluster/np_cluster_legacy_mpi
RUN cd np-tmcode/build &&CXX=mpicxx FC=gfortran ./configure --enable-static--disable-mpi--enable-ilp64--enable-openmp--without-lapack--without-magma&& make clean && make -j&&mv cluster/np_cluster cluster/np_cluster_legacy_mpi
#RUN cd np-tmcode/src && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_OPENMP=1 CXX=g++ FC=gfortran make wipe && BUILDDIR=../../build BUILDDIR_NPTM=../../build/libnptm LIBNPTM=../../build/libnptm/libnptm.a USE_ILP64=1 USE_OPENMP=1 CXX=g++ FC=gfortran make -j && mv ../build/cluster/np_cluster ../build/cluster/np_cluster_legacy_serial
RUN cd np-tmcode/build &&CXX=g++ FC=gfortran ./configure --enable-static--disable-mpi--enable-ilp64--disable-openmp--without-lapack--without-magma&& make clean && make -j&&mv cluster/np_cluster cluster/np_cluster_legacy_serial
RUN cd np-tmcode/doc/src && doxygen config.dox &&cd ../build/latex && make -j