/[suikacvs]/messaging/manakai/lib/Makefile
Suika

Contents of /messaging/manakai/lib/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Apr 28 15:22:59 2005 UTC (19 years, 6 months ago) by wakaba
Branch: MAIN
bin/dac2pm.pl: New script; lib/Message/Util/DIS.dis: Module generation implemented; lib/Makefile: New

1 wakaba 1.1 MANAKAI_ROOT_DIR = ../
2     MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
3     MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
4     TEMP_LIB_DIR = $(MANAKAI_LIB_DIR).phase1.tmp/
5     TEMP_LIB2_DIR = $(MANAKAI_LIB_DIR).phase2.tmp/
6    
7     NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
8     NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\#
9     NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
10     NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/
11    
12     MKDIR = mkdir
13     RM = rm
14    
15     PERL = perl
16     PERL1 = $(PERL) -I$(MANAKAI_LIB_DIR)
17     PERL1_CHK = $(PERL) -I$(TEMP_LIB_DIR) -I$(MANAKAI_LIB_DIR) -c -w
18     PERL2 = $(PERL) -I$(TEMP_LIB_DIR) -I$(MANAKAI_LIB_DIR)
19     PERL2_CHK = $(PERL) -I$(TEMP_LIB2_DIR) -I$(TEMP_LIB_DIR) -I$(MANAKAI_LIB_DIR)
20    
21     DISC_PL = $(MANAKAI_BIN_DIR)disc.pl
22     DISC = $(PERL1) $(DISC_PL) \
23     -I=$(MANAKAI_LIB_DIR)manakai/ \
24     -I=$(MANAKAI_LIB_DIR)Message/Util/ \
25     -I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \
26     -I=$(MANAKAI_LIB_DIR)Message/Markup/ \
27     -I=$(MANAKAI_LIB_DIR)Message/DOM/
28     CDIS2PM_OPTIONS =
29     CDIS2PM_PL = $(MANAKAI_BIN_DIR)cdis2pm.pl
30     CDIS2PM = $(PERL1) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)
31    
32     DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
33     DAC = $(PERL2) \
34     -MMessage::Util::Error::DOMException \
35     $(DAC_PL) \
36     --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
37     --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
38     --output-file-name=
39    
40     DAC2PM_OPTIONS =
41     DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
42     DAC2PM = $(PERL2) \
43     -MMessage::Util::Error::DOMException \
44     $(DAC2PM_PL) $(DAC2PM_OPTIONS)
45    
46     DIS_FILES_FOR_DOMMETAIMPL = \
47     $(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis \
48     $(MANAKAI_LIB_DIR)Message/DOM/DOMMetaImpl.dis \
49     $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \
50     $(MANAKAI_LIB_DIR)manakai/DISCore.dis \
51     $(MANAKAI_LIB_DIR)manakai/DISRDF.dis \
52     $(MANAKAI_LIB_DIR)manakai/DISLang.dis \
53     $(MANAKAI_LIB_DIR)manakai/DISIDL.dis \
54     $(MANAKAI_LIB_DIR)manakai/DISPerl.dis \
55     $(MANAKAI_LIB_DIR)manakai/XML.dis
56     ## NOTE: DOMBoot.dis must be first
57    
58     DIS_FILES_FOR_DIS = \
59     $(MANAKAI_LIB_DIR)Message/Util/DIS.dis \
60     $(MANAKAI_LIB_DIR)Message/Markup/SuikaWikiConfig21.dis \
61     $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis \
62     $(MANAKAI_LIB_DIR)Message/Util/PerlCode.dis
63     ## NOTE: DIS.dis must be first
64    
65     GENERATED_FILES = $(TEMP_LIB_DIR) \
66     $(TEMP_LIB_DIR)Message/Util/ManakaiNode.pm \
67     $(TEMP_LIB_DIR)Message/DOM/DOMMetaImpl.pm \
68     $(TEMP_LIB_DIR)Message/Markup/SuikaWikiConfig21.pm \
69     $(TEMP_LIB_DIR)Message/Util/Error/DOMException.pm \
70     $(TEMP_LIB_DIR)Message/Util/PerlCode.pm \
71     $(TEMP_LIB_DIR)Message/Util/DIS.pm \
72     \
73     $(TEMP_LIB2_DIR) \
74     $(TEMP_LIB2_DIR)Message/Util/ManakaiNode.pm \
75     $(TEMP_LIB2_DIR)Message/DOM/DOMMetaImpl.pm \
76     $(TEMP_LIB2_DIR)Message/Markup/SuikaWikiConfig21.pm \
77     $(TEMP_LIB2_DIR)Message/Util/Error/DOMException.pm \
78     $(TEMP_LIB2_DIR)Message/Util/PerlCode.pm \
79     $(TEMP_LIB2_DIR)Message/Util/DIS.pm
80    
81     all: $(GENERATED_FILES)
82    
83     ## Phase 1 - Making Perl modules by old disc and cdis2pm tools
84    
85     $(TEMP_LIB_DIR):
86     $(MKDIR) -p $(TEMP_LIB_DIR)Message/Util/Error
87     $(MKDIR) -p $(TEMP_LIB_DIR)Message/DOM
88     $(MKDIR) -p $(TEMP_LIB_DIR)Message/Markup
89    
90     $(TEMP_LIB_DIR)dom.cdis: $(DIS_FILES_FOR_DOMMETAIMPL) $(DISC_PL)
91     $(DISC) $< --output-file-name="$@"
92    
93     $(TEMP_LIB_DIR)dis.cdis: $(DIS_FILES_FOR_DIS) \
94     $(TEMP_LIB_DIR)dom.cdis $(DISC_PL)
95     $(DISC) $< --input-cdis-file-name="$(TEMP_LIB_DIR)dom.cdis" \
96     --output-file-name="$@"
97    
98     $(TEMP_LIB_DIR)Message/DOM/DOMMetaImpl.pm: $(TEMP_LIB_DIR)dom.cdis $(CDIS2PM_PL)
99     $(CDIS2PM) $< --module-name=DOMMetaImpl > $@
100     $(PERL1_CHK) $@
101    
102     $(TEMP_LIB_DIR)Message/Util/ManakaiNode.pm: $(TEMP_LIB_DIR)dom.cdis $(CDIS2PM_PL)
103     $(CDIS2PM) $< --module-name=ManakaiNode > $@
104     $(PERL1_CHK) $@
105    
106     $(TEMP_LIB_DIR)Message/Util/DIS.pm: $(TEMP_LIB_DIR)dis.cdis $(CDIS2PM_PL)
107     $(CDIS2PM) $< --module-name=DIS > $@
108     $(PERL1_CHK) $@
109    
110     $(TEMP_LIB_DIR)Message/Util/PerlCode.pm: $(TEMP_LIB_DIR)dis.cdis $(CDIS2PM_PL)
111     $(CDIS2PM) $< --module-name=PerlCode > $@
112     $(PERL1_CHK) $@
113    
114     $(TEMP_LIB_DIR)Message/Util/Error/DOMException.pm: $(TEMP_LIB_DIR)dis.cdis \
115     $(CDIS2PM_PL)
116     $(CDIS2PM) $< --module-name=DOMException > $@
117     $(PERL1_CHK) $@
118    
119     $(TEMP_LIB_DIR)Message/Markup/SuikaWikiConfig21.pm: $(TEMP_LIB_DIR)dis.cdis \
120     $(CDIS2PM_PL)
121     $(CDIS2PM) $< --module-name=SuikaWikiConfig21 > $@
122     $(PERL1_CHK) $@
123    
124     ## Phase 2 - Making Perl modules by dac tools generated
125     ## by old disc and cdis2pm tools
126    
127     $(TEMP_LIB2_DIR):
128     $(MKDIR) -p $(TEMP_LIB2_DIR)Message/Util/Error
129     $(MKDIR) -p $(TEMP_LIB2_DIR)Message/DOM
130     $(MKDIR) -p $(TEMP_LIB2_DIR)Message/Markup
131    
132     $(TEMP_LIB2_DIR)dom.dac: $(DIS_FILES_FOR_DOMMETAIMPL) $(DAC_PL)
133     $(DAC)$@ $<
134    
135     $(TEMP_LIB2_DIR)dis.dac: $(DIS_FILES_FOR_DIS) $(TEMP_LIB2_DIR)dom.dac $(DAC_PL)
136     $(DAC)$@ --input-db-file-name="$(TEMP_LIB2_DIR)dom.dac" $<
137    
138     $(TEMP_LIB2_DIR)Message/DOM/DOMMetaImpl.pm: \
139     $(TEMP_LIB2_DIR)dom.dac $(DAC2PM_PL)
140     $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" > $@
141     $(PERL2_CHK) $@
142    
143     $(TEMP_LIB2_DIR)Message/Markup/SuikaWikiConfig21.pm: \
144     $(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL)
145     $(DAC2PM) $< --module-uri="$(NS_MARKUP)SuikaWikiConfig21" > $@
146     $(PERL2_CHK) $@
147    
148     $(TEMP_LIB2_DIR)Message/Util/ManakaiNode.pm: \
149     $(TEMP_LIB2_DIR)dom.dac $(DAC2PM_PL)
150     $(DAC2PM) $< --module-uri="$(NS_UTIL)ManakaiNode" > $@
151     $(PERL2_CHK) $@
152    
153     $(TEMP_LIB2_DIR)Message/Util/DIS.pm: \
154     $(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL)
155     $(DAC2PM) $< --module-uri="$(NS_UTIL)DIS" > $@
156     $(PERL2_CHK) $@
157    
158     $(TEMP_LIB2_DIR)Message/Util/PerlCode.pm: \
159     $(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL)
160     $(DAC2PM) $< --module-uri="$(NS_UTIL)PerlCode" > $@
161     $(PERL2_CHK) $@
162    
163     $(TEMP_LIB2_DIR)Message/Util/Error/DOMException.pm: \
164     $(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL)
165     $(DAC2PM) $< --module-uri="$(NS_UTIL_ERR)DOMException" > $@
166     $(PERL2_CHK) $@
167    
168     ## Phase 3 - Making Perl modules by dac tools generated by dac tools
169    
170     ## Misc.
171    
172     clean:
173     $(RM) -frv $(TEMP_LIB_DIR)
174     $(RM) -fv *~ .*~ *.BAK .*.BAK

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24