Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.295 2001/03/23 11:21:29 gawthrop +## Show -pdf oprion in help list +## ## Revision 1.294 2001/03/19 02:28:52 geraint ## Branch merge: merging-ode2odes-exe back to MAIN. ## ## Revision 1.293.2.8 2001/03/19 01:35:31 geraint ## Reverted forced update check to main branch form, ready for merge. @@ -1830,15 +1833,15 @@ sys=`echo $1 | cut -c 2-` sys_abg=$sys"_abg" fi ## Check octave version -if [ `octave --version | awk -F\. '{print $2}'` ]; then - define_octave_dev="-DOCTAVE_DEV" -else - define_octave_dev="" -fi +case `$MATRIX --version | awk -F\. '{print $2}'` in + 0) define_octave_dev="";; # stable + 1) define_octave_dev="-DOCTAVE_DEV";; # development + *) define_octave_dev="-DOCTAVE_DEV";; +esac ################################ # This is the main mtt programme ################################ @@ -2067,45 +2070,35 @@ $1_simpar.m: $1_simpar.txt $1_def.r $1_sympar.txt mtt_txt2m $1 simpar #SUMMARY numpar numerical parameter declaration -- default (txt) -$1_numpar.txt : FORCE - mtt -q $1 sympar txt - mtt -q $1 def r +$1_numpar.txt : $1_sympar.txt $1_def.r ifeq ($target,$1_numpar.txt) mtt_update $1 numpar update else mtt_update $1 numpar endif #SUMMARY state numerical state declaration -- default (txt) -$1_state.txt : FORCE - mtt -q $1 struc txt - mtt -q $1 sympar txt - mtt -q $1 def r +$1_state.txt : $1_struc.txt $1_sympar.txt $1_def.r ifeq ($target,$1_state.txt) mtt_update $1 state update else mtt_update $1 state endif #SUMMARY input numerical state declaration -- default (txt) -$1_input.txt : FORCE - mtt -q $1 struc txt - mtt -q $1 sympar txt +$1_input.txt : $1_struc.txt $1_sympar.txt ifeq ($target,$1_input.txt) mtt_update $1 input update else mtt_update $1 input endif #SUMMARY logic Dynamic switch logic (txt) -$1_logic.txt : FORCE - mtt -q $1 def r - mtt -q $1 struc txt - mtt -q $1 sympar txt +$1_logic.txt : $1_def.r $1_struc.txt $1_sympar.txt ifeq ($target,$1_logic.txt) mtt_update $1 logic update else mtt_update $1 logic endif