Overview
Comment:Replaced some implicit rules with explicit tests and patterns.
Better than having make search through every possible implicit rule.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f550dbfb560a40bc55a1570b1b830caf08d286c1327f2159e45eafea5680c4a8
User & Date: geraint@users.sourceforge.net on 2004-08-26 12:50:12
Other Links: branch diff | manifest | tags
Context
2004-08-26
16:11:48
Fixed ignore() and pipe so that subsystems are included in reports again. check-in: ab17204614 user: geraint@users.sourceforge.net tags: origin/master, trunk
12:50:12
Replaced some implicit rules with explicit tests and patterns.
Better than having make search through every possible implicit rule.
check-in: f550dbfb56 user: geraint@users.sourceforge.net tags: origin/master, trunk
00:42:41
Moved bond graph above artwork. check-in: a6dea5ba88 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [056b312635] to [8688124203].

13
14
15
16
17
18
19



20
21
22
23
24
25
26
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29







+
+
+







# 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
## Use ibg.m by default for both Xfig and Dia models.
##
## Revision 1.388  2004/08/11 08:18:07  geraint
2459
2460
2461
2462
2463
2464
2465

2466
2467
2468
2469
2470






2471
2472
2473
2474
2475
2476
2477
2462
2463
2464
2465
2466
2467
2468
2469





2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482







+
-
-
-
-
-
+
+
+
+
+
+







endif

# Create an arg file if it doesn't exist
$1_args.m:
	touch $1_args.m

#Create list of components
ifeq ("\$(wildcard $1_abg.dia)","$1_abg.dia")
%_cmp.txt:: %_abg.dia
	abg2cmp_dia2txt \$*

%_cmp.txt: %_abg.fig
	abg2cmp_fig2txt \$* 
$1_cmp.txt: $1_abg.dia
	abg2cmp_dia2txt $1
else
$1_cmp.txt: $1_abg.fig
	abg2cmp_fig2txt $1
endif

#Create skeleton files (with titles) if not already there
#SUMMARY lbl*	label file (txt)
#SUMMARY lbl	label file (txt)
#SUMMARY lbl*	label file (view)
#SUMMARY lbl	label file (view)
#SUMMARY lbl*	label file (tex)
2828
2829
2830
2831
2832
2833
2834
2835
2836


2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853

2854
2855
2856


2857
2858
2859

2860
2861
2862
2863
2864




2865
2866


2867
2868
2869


2870
2871
2872
2873
2874
2875
2876
2833
2834
2835
2836
2837
2838
2839


2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857

2858
2859


2860
2861
2862
2863

2864





2865
2866
2867
2868
2869

2870
2871
2872


2873
2874
2875
2876
2877
2878
2879
2880
2881







-
-
+
+
















-
+

-
-
+
+


-
+
-
-
-
-
-
+
+
+
+

-
+
+

-
-
+
+








#Subsystem creation commands
#SUMMARY sub Executable subsystem list (sh)
ifeq ($start_at_abg,yes)
$1_sub.sh: $1_abg.m
	abg2sub_m2sh $1
else
%_sub.sh: %_cmp.txt %_aliased_subsystems_copied
	cmp2sub_txt2sh \$*
$1_sub.sh: $1_cmp.txt $1_aliased_subsystems_copied
	cmp2sub_txt2sh $1
endif

#SUMMARY sub LaTeX subsystem list (tex)
#SUMMARY sub subsystem list (ps)
#SUMMARY sub subsystem list (view)
$1_sub.tex: $1_sub.sh
ifeq ($documenttype,section)
	sub_sh2tex $1
else
	sub_sh2tex -l $1
endif

#SUMMARY abg	acausal bond graph (m)
#Raw bond graph to acausal bond graph: mfile

ifneq ($start_at_abg,yes)
%_abg.m: %_ibg.m %_cmp.m %_lbl.txt %_alias.m %_sub.sh %_icd.m
$1_abg.m: $1_ibg.m $1_cmp.m $1_lbl.txt $1_alias.m $1_sub.sh $1_icd.m
	@echo "Creating \$@"
	(sh \$*_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null  || exit 1') || exit 1
	ibg2abg_m $info_switch \$*
	(sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null  || exit 1') || exit 1
	ibg2abg_m $info_switch $1
endif


ifeq ("\$(wildcard $1_abg.dia)","$1_abg.dia")
.PRECIOUS: %_ibg.m
%_ibg.m: %_abg.dia %_alias.m
	abg2ibg_dia2m \$*

%_ibg.m: %_abg.fig %_rbg.m
$1_ibg.m: $1_abg.dia $1_alias.m
	abg2ibg_dia2m $1
else
$1_ibg.m: $1_abg.fig $1_rbg.m
	@echo "Creating \$@"
	rbg2ibg_m $info_switch \$*
	rbg2ibg_m $info_switch $1
endif

%_connections.dat: %_abg.m
	abg2connections_m2dat \$*
$1_connections.dat: $1_abg.m
	abg2connections_m2dat $1

#SUMMARY cbg*	causal bond graph (m)
#Acausal bond graph to causal bond graph: mfile
$1_cbg.m: $1_abg.m
	abg2cbg_m  $info_switch $causality_switch $1

$1_type.sh: $1_cbg.m
3662
3663
3664
3665
3666
3667
3668






3669
3670
3671

3672
3673
3674
3675
3676
3677
3678
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690







+
+
+
+
+
+



+







	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"


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]