13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.391 2004/08/26 00:07:06 geraint
## Added rule to create cbg.dia.
##
## Revision 1.390 2004/08/13 09:49:13 geraint
## Only use one level of MTT_work to prevent MTT from repeatedly copying or creating the same files.
##
## Revision 1.389 2004/08/13 01:32:03 geraint
|
>
>
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.392 2004/08/26 12:50:12 geraint
## Replaced some implicit rules with explicit tests and patterns.
## Better than having make search through every possible implicit rule.
##
## Revision 1.391 2004/08/26 00:07:06 geraint
## Added rule to create cbg.dia.
##
## Revision 1.390 2004/08/13 09:49:13 geraint
## Only use one level of MTT_work to prevent MTT from repeatedly copying or creating the same files.
##
## Revision 1.389 2004/08/13 01:32:03 geraint
|
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
|
mtt -q -u $mtt_switches compcopy $1 || abg2sensitivity_fig $sys_s
endif
endif
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:
touch $1_args.m
|
>
>
|
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
|
mtt -q -u $mtt_switches compcopy $1 || abg2sensitivity_fig $sys_s
endif
endif
ifneq ("$sensitivity","sensitivity")
ifneq ("$level","0")
# If level>0, try and get subsystem files; creating if necessary
ifneq ("\$(wildcard $1_abg.dia)","$1_abg.dia")
$1_abg.fig:
mtt -q -u $mtt_switches compcopy $1
else
$1_abg.fig:
endif
endif
endif
# Create an arg file if it doesn't exist
$1_args.m:
touch $1_args.m
|
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
|
mtt.sty:
echo Copying mtt.sty to here
cp $MTTPATH/trans/mtt.sty .
$1_$2.doc: $1_$2.tex
makedoc "$mtt_switches" "$1" "$2" "$3" "$4" "$documenttype" "$ps"
#Create PostScript version of fig files
ifeq ($REPTYPE,bg)
#ifeq ("\$(wildcard $1_abg.dia)","$1_abg.dia")
#$1_$2.$ps : $1_$2.dia
# echo Creating $1_$2.$ps
# dia --no-splash --export-to-format=eps $1_$2.dia
# mv $1_$2.eps $1_$2.$ps
#else
$1_$2.$ps : $1_$2.fig
echo Creating $1_$2.$ps
multi_command2 "fig2dev -L$eps" $1 $2.fig $2.$ps | sh
#endif
endif
ifeq ($REPTYPE,tex)
#Generic conversion of LaTeX doc to dvi or pdf
$1_$2.$ps: $1_$2.doc
doc2$ps $1_$2 "$documenttype"
|
|
|
|
<
<
<
|
>
|
<
|
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
|
mtt.sty:
echo Copying mtt.sty to here
cp $MTTPATH/trans/mtt.sty .
$1_$2.doc: $1_$2.tex
makedoc "$mtt_switches" "$1" "$2" "$3" "$4" "$documenttype" "$ps"
#Create PostScript version of dia and fig files
ifeq ($REPTYPE,bg)
ifeq ("\$(wildcard $1_abg.dia)","$1_abg.dia")
$1_$2.$ps : $1_$2.dia
else
$1_$2.$ps : $1_$2.fig
endif
echo Creating $1_$2.$ps
bg2eps $1 $2 $ps $eps
endif
ifeq ($REPTYPE,tex)
#Generic conversion of LaTeX doc to dvi or pdf
$1_$2.$ps: $1_$2.doc
doc2$ps $1_$2 "$documenttype"
|