From 3a58e17ab0bba966c9dbab27cb63ee016ef57f4d Mon Sep 17 00:00:00 2001 From: Juan ESCOBAR <juan.escobar@aero.obs-mip.fr> Date: Wed, 1 Feb 2023 10:51:56 +0100 Subject: [PATCH] Juan 01/02/2023:spll_lst, remove noisy *_1.acc.? file & mv .lst for *.f to dir_obj --- bin/spll_lst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/spll_lst b/bin/spll_lst index 5d8e69438..44093318f 100755 --- a/bin/spll_lst +++ b/bin/spll_lst @@ -34,9 +34,16 @@ ec_meminfo.F90" if [ "$SUF" = "f" ] then -echo "!depfile:$BASENAME2.D" > $DIRNAME/spll_$BASENAME -cat $file >> $DIRNAME/spll_$BASENAME -echo "#" $file > $DIRNAME/$BASENAME2.D +spllbase="spll_$BASENAME2" +spllfile="$spllbase.$SUF" + +echo "!depfile:$BASENAME2.D" > $DIRNAME/$spllfile +cat $file >> $DIRNAME/$spllfile +echo "#=========== $BASENAME2.$SUF dependence ==========================" > $DIRNAME/$BASENAME2.D +echo $spllbase.o : $spllfile >> $DIRNAME/$BASENAME2.D +echo " "' $(F77) -I$(OBJDIR)/MOD $(INC) -c $(F77FLAGS) $<' >> $DIRNAME/$BASENAME2.D +echo " -mv $spllbase.o $spllbase.lst "' $(OBJDIR)/. || '"echo OK $spllbase.o " >> $DIRNAME/$BASENAME2.D +echo " -rm -f ${spllbase}_1.acc.? || echo OK $spllbase.acc " >> $DIRNAME/$BASENAME2.D else @@ -157,6 +164,7 @@ echo " "' $(FX90) -I$(OBJDIR)/MOD $(INC) -c $(FX90FLAGS) $(OBJDIR)/$(*F).f ' >> echo " "' rm $(OBJDIR)/$(*F).f ' >> $DIRNAME/$BASENAME2.D fi echo " -mv $spllbase.o $spllbase.lst "' $(OBJDIR)/. || '"echo OK $spllbase.o " >> $DIRNAME/$BASENAME2.D +echo " -rm -f ${spllbase}_1.acc.? || echo OK $spllbase.acc " >> $DIRNAME/$BASENAME2.D for filemod in $mod do echo " -mv $filemod "' $(OBJDIR)/MOD/. || '"echo OK $filemod " >> $DIRNAME/$BASENAME2.D -- GitLab