Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -17,10 +17,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.18 1996/08/19 13:30:54 peter +## New CLEAN target. +## ## Revision 1.17 1996/08/19 06:48:14 peter ## Explicit figure editing. ## ## Revision 1.16 1996/08/18 19:58:36 peter ## Report generation included. @@ -113,23 +116,17 @@ EOF exit fi -# Clean up after MTT if [ "$2" = "clean" ]; then - echo 'Removing log, dat, gdat, doc, dvi, aux and ps files' - rm -f $1.log $1.dat $1.gdat $1.doc $1.aux $1.dvi $1.ps - exit -fi - -if [ "$2" = "CLEAN" ]; then echo 'Removing all generated files for system ' $1 - rm -f $1_abg.m $1_args.* - rm -f $1_rbg.* $1_cmp.* $1_fig.fig $1_cbg.* $1_ese.* $1_def.* + rm -f *.log mtt_info.txt warning.txt + rm -f $1_abg.m $1_args.* + rm -f $1_rbg.* $1_cmp.* $1_fig.fig $1_*cbg.* $1_ese.* $1_def.* rm -f $1_dae*.* $1_cse.* $1_ode*.* $1_obs.* $1_rfe.* $1_ss.* - rm -f $1_dm.* $1_csm.* $1_tf.* $1_sr*.* $1_*fr.* + rm -f $1_dm.* $1_csm.* $1_sm.* $1_tf.* $1_sr*.* $1_*fr.* rm -f $1_rep.* exit fi # Invoke explicit requests for modification @@ -361,10 +358,18 @@ cse2csm_r $1; tidy $1_csm.r $1_csm.m: $1_def.r $1_csm.r csm_r2m $1; matlab_tidy $1_csm.m $1_csm.tex: $1_csm.r $1_sympar.r $1_simp.r csm_r2tex $1; latex_tidy $1_csm.tex + +#Linearised system: state matrices +$1_sm.r: $1_csm.r $1_def.r $1_cr.r $1_ss.r $1_sympar.r + csm2sm_r $1; tidy $1_sm.r +$1_sm.m: $1_def.r $1_sm.r + sm_r2m $1; matlab_tidy $1_sm.m +$1_sm.tex: $1_sm.r $1_sympar.r $1_simp.r + sm_r2tex $1; latex_tidy $1_sm.tex #Linearised system: transfer function $1_tf.r: $1_dm.r $1_sympar.r dm2tf_r $1; tidy $1_tf.r $1_tf.m: $1_def.r $1_tf.r @@ -372,12 +377,12 @@ $1_tf.tex: $1_def.r $1_tf.r $1_sympar.r $1_simp.r tf_r2tex $1; latex_tidy $1_tf.tex #Time responses -$1_sr.m: $1_dm.m $1_numpar.m $1_args.m $1_def.m - dm2sr_m $1 '$ARGS' +$1_sr.m: $1_sm.m $1_numpar.m $1_args.m $1_def.m + sm2sr_m $1 '$ARGS' $1_sro.m: $1_sr.m touch $1_sro.m $1_odes.m: $1_ode.m $1_numpar.m $1_args.m $1_def.m $1_input.m ode2odes_m $1 '$ARGS' $1_odeso.m: $1_odes.m