From ca854db888f6407dc3e6617ca1d99e59110df870 Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Sun, 22 Jan 2017 18:05:07 -0600 Subject: Move some rules to INSTALL/Makefile --- INSTALL/Makefile | 18 +++++++++++++++--- Makefile | 6 +++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/INSTALL/Makefile b/INSTALL/Makefile index 15f5252b..51b15de6 100644 --- a/INSTALL/Makefile +++ b/INSTALL/Makefile @@ -1,8 +1,12 @@ include ../make.inc -.SUFFIXES: .o .f all: testlsame testslamch testdlamch testsecond testdsecnd testieee testversion +clean: + rm -f *.o +cleanall: + rm -f test* + testlsame: lsame.o lsametst.o $(LOADER) $(LOADOPTS) -o $@ lsame.o lsametst.o @@ -26,8 +30,16 @@ testieee: tstiee.o testversion: ilaver.o LAPACK_version.o $(LOADER) $(LOADOPTS) -o $@ ilaver.o LAPACK_version.o -clean: - rm -f *.o +run: all + ./testlsame + ./testslamch + ./testdlamch + ./testsecond + ./testdsecnd + ./testieee + ./testversion + +.SUFFIXES: .o .f .f.o: $(FORTRAN) $(OPTS) -c -o $@ $< diff --git a/Makefile b/Makefile index 497fc3cd..f68fd360 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,7 @@ lib: lapacklib tmglib clean: cleanlib cleantesting cleanblas_testing cleancblas_testing lapack_install: - ( cd INSTALL; $(MAKE); ./testlsame; ./testslamch; ./testdlamch; \ - ./testsecond; ./testdsecnd; ./testieee; ./testversion ) + ( cd INSTALL; $(MAKE) run ) blaslib: ( cd BLAS/SRC; $(MAKE) ) @@ -125,4 +124,5 @@ cleantesting: ( cd TESTING; rm -f xlin* xeig* ) cleanall: cleanlib cleanblas_testing cleancblas_testing cleantesting - rm -f *.a TESTING/*.out INSTALL/test* BLAS/*.out + ( cd INSTALL; $(MAKE) cleanall ) + rm -f *.a TESTING/*.out BLAS/*.out -- cgit v1.2.3