From 21dc3ceee2bfc9c59da9c82ddf4ba37a75f1a59e Mon Sep 17 00:00:00 2001 From: Jan Mandel Date: Sun, 5 Dec 2021 14:40:27 -0700 Subject: [PATCH] cleaning matlab txt files before make all --- femwind/fortran/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/femwind/fortran/Makefile b/femwind/fortran/Makefile index d702eb4..3288e45 100644 --- a/femwind/fortran/Makefile +++ b/femwind/fortran/Makefile @@ -28,7 +28,7 @@ tests: hexa_test.exe\ femwind_test.exe\ netcdf_test.exe -all: default tests +all: clean_exe default tests hexa_test.exe: hexa_test.o module_hexa.o module_utils.o Makefile $(FC) $(FFLAGS) -o hexa_test.exe hexa_test.o module_hexa.o module_utils.o @@ -157,5 +157,9 @@ NETCDF_TEST = netcdf_test.f90 $(WRFOUT_MODULES) module_utils.o netcdf_test.exe: $(NETCDF_TEST) Makefile $(FC) $(FFLAGS) -o $@ $(NETCDF_TEST) $(LFLAGS) -clean: - rm -rf *.mod *.o *.exe *.dSYM ../*.txt +# to do when building any exe files +clean_exe: + rm -f ../*.txt + +clean: clean_exe + rm -f *.mod *.o *.exe *.dSYM -- 2.11.4.GIT