Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -15,10 +15,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.355 2002/06/10 23:18:44 geraint +## Adjusted cr.h comment delimiters to be C compliant. +## ## Revision 1.354 2002/06/10 10:43:19 gawthrop ## ode2odes now prerequisite for sim.m and ssim.m ## ## Revision 1.353 2002/05/28 18:08:38 geraint ## Fixed [ 547294 ] CRs are not sought from MTT_CRS. @@ -2234,14 +2237,15 @@ .PRECIOUS: %.cc # Don't let mtt delete them .PRECIOUS: $1_%.cc # Don't let mtt delete them $1_%.cc: $1_%.m mtt_m2cc.sh $1 \$* cc cat -mtt_%.cc: ${MTT_LIB}/cc/mtt_%.cc +mtt_%.cc:: ${MTT_LIB}/cc/mtt_%.cc cp ${MTT_LIB}/cc/mtt_\$*.cc mtt_\$*.cc + -mtt_%.hh: ${MTT_LIB}/cc/mtt_%.hh +mtt_%.hh:: ${MTT_LIB}/cc/mtt_%.hh cp ${MTT_LIB}/cc/mtt_\$*.hh mtt_\$*.hh ## .o files .PRECIOUS: $1_%.o $1_%.o: $1_%.cc $1_def.h $1_sympar.h $1_cr.h @@ -2270,10 +2274,13 @@ ifneq ("$sensitivity","sensitivity") ifneq ("$level","0") # If level>0, try and get subsystem files; creating if necessary $1_abg.fig: mtt -q -u $mtt_switches compcopy $1 +else +$1_abg.fig: + endif endif # Create an arg file if it doesn't exist $1_args.m: @@ -2537,13 +2544,12 @@ touch \$@ $1_ode2odes_dassl.o: $1_ode.o $1_odeo.o mtt_dassl.o @echo "Creating \$@" ar -cr \$@ \$^ -mtt_Solver.cc: mtt_Solver.hh -mtt_AlgebraicSolver.cc: mtt_AlgebraicSolver.hh $1_ode2odes_${algebraic_solver}.cc: mtt_Solver.cc mtt_AlgebraicSolver.cc mtt_${algebraic_solver}.hh mtt_${algebraic_solver}.cc + $1_ode2odes_${algebraic_solver}.o: mtt_Solver.o mtt_AlgebraicSolver.o mtt_${algebraic_solver}.o @echo "Creating $1_ode2odes_${algebraic_solver}.o" ar -cr \$@ \$^ #SUMMARY numpar numerical parameter declaration (m) @@ -2613,12 +2619,15 @@ #SUMMARY rbg raw bond graph (m) #Raw bond graph: fig file to mfile $1_rbg.m: $1_abg.fig $1_lbl.txt lbl2component $1 | sh || exit 1 # Grab specified components now rbg_fig2m $1 + $1_cmp.m: $1_rbg.m + $1_fig.fig: $1_rbg.m + #SUMMARY sabg stripped acausal bond graph (fig) #SUMMARY sabg stripped acausal bond graph (ps) #SUMMARY sabg stripped acausal bond graph (view) $1_sabg.fig: $1_rbg.m