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

Contents of /messaging/manakai/lib/Message/DOM/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Sun May 8 14:18:01 2005 UTC (19 years, 6 months ago) by wakaba
Branch: MAIN
Changes since 1.14: +1 -1 lines
Element-type specialized class implemented; interface association bug fixed

1 wakaba 1.13 MANAKAI_ROOT_DIR = ../../../
2     MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
3     MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
4    
5     CD = cd
6 wakaba 1.1 MAKE = make
7 wakaba 1.3 RM = rm
8 wakaba 1.13 PERL = perl
9     PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR)
10     PERL_OPTIONS = $(PERL_OPTIONS3)
11     PERL_ = $(PERL) $(PERL_OPTIONS)
12     PERLC = $(PERL) -c -w
13     PERLC_OPTIONS3 = $(PERL_OPTIONS)
14     PERLC_OPTIONS = $(PERLC_OPTIONS3)
15     PERL_CHK = $(PERLC) $(PERLC_OPTIONS)
16 wakaba 1.1
17 wakaba 1.13 NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
18     NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
19 wakaba 1.7
20 wakaba 1.13 DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
21     DAC = $(PERL_) $(DAC_PL) \
22     --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
23     --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
24     --output-file-name=
25    
26     DAC2PM_OPTIONS3 = --enable-assert
27     DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
28     DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
29     DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)
30 wakaba 1.1
31 wakaba 1.13 CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac
32     UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac
33 wakaba 1.1
34 wakaba 1.14 DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis
35     DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis
36 wakaba 1.2
37 wakaba 1.14 DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML)
38    
39     _DIS_FILES = \
40 wakaba 1.9 DOMLS.dis ManakaiDOMLS2003.dis \
41 wakaba 1.14 DOMEvents.dis DOMViews.dis
42 wakaba 1.9
43 wakaba 1.10 GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \
44 wakaba 1.9 DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \
45 wakaba 1.10 DOMEvents.pm DOMViews.pm \
46 wakaba 1.12 DOMHTML.pm DOMWebForms.pm \
47     meta.cdis DOMMetaImpl.dis
48 wakaba 1.7
49 wakaba 1.14 GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \
50     html.dac DOMHTML.pm DOMWebForms.pm
51 wakaba 1.13 BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm
52 wakaba 1.7
53 wakaba 1.13 all: $(GENERATED_FILES)
54 wakaba 1.7
55 wakaba 1.14 core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \
56     $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \
57     $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis
58     $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis
59    
60     html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac
61     $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis
62 wakaba 1.9
63 wakaba 1.14 DOMMain.pm: core.dac $(DAC2PM_PL)
64 wakaba 1.13 $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@
65     $(PERL_CHK) $@
66 wakaba 1.12
67 wakaba 1.14 DOMCore.pm: core.dac $(DAC2PM_PL)
68 wakaba 1.13 $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@
69     $(PERL_CHK) $@
70 wakaba 1.7
71 wakaba 1.14 DOMXML.pm: core.dac $(DAC2PM_PL)
72 wakaba 1.13 $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@
73     $(PERL_CHK) $@
74 wakaba 1.9
75 wakaba 1.14 DOMHTML.pm: html.dac $(DAC2PM_PL)
76     $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@
77     $(PERL_CHK) $@
78    
79     DOMWebForms.pm: html.dac $(DAC2PM_PL)
80     $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@
81     $(PERL_CHK) $@
82    
83 wakaba 1.13 boot: $(BOOT_GENERATED_FILES)
84 wakaba 1.7
85 wakaba 1.13 boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE)
86     $(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis
87 wakaba 1.12
88 wakaba 1.13 DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)
89 wakaba 1.14 $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" \
90     --output-file-path="$@"
91 wakaba 1.12 $(PERL_CHK) $@
92 wakaba 1.10
93 wakaba 1.13 # $(CORE_DAC_FILE)
94     $(MANAKAI_LIB_DIR)manakai/all.dac: \
95     $(MANAKAI_LIB_DIR)manakai/DISCore.dis \
96     $(MANAKAI_LIB_DIR)manakai/DISRDF.dis \
97     $(MANAKAI_LIB_DIR)manakai/DISLang.dis \
98     $(MANAKAI_LIB_DIR)manakai/DISIDL.dis \
99     $(MANAKAI_LIB_DIR)manakai/DISPerl.dis \
100 wakaba 1.14 $(MANAKAI_LIB_DIR)manakai/XML.dis \
101     $(MANAKAI_LIB_DIR)manakai/DISMarkup.dis
102     $(CD) $(MANAKAI_LIB_DIR)manakai/ && \
103 wakaba 1.13 $(MAKE) all.dac
104 wakaba 1.1
105 wakaba 1.13 # $(UTIL_DAC_FILE)
106 wakaba 1.14 $(MANAKAI_LIB_DIR)Message/Util/all.dac: \
107     DOMMetaImpl.dis DOMBoot.dis
108 wakaba 1.15 $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && \
109 wakaba 1.13 $(MAKE) all.dac
110 wakaba 1.9
111 wakaba 1.13 clean:
112     $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~
113 wakaba 1.9
114     DOMEvents.pm: ev.cdis $(CDIS2PM_PL)
115     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
116     --module-name=DOMEvents > $@
117     $(PERL_CHK) $@
118    
119 wakaba 1.10 DOMViews.pm: ev.cdis $(CDIS2PM_PL)
120     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
121     --module-name=DOMViews > $@
122     $(PERL_CHK) $@
123    
124 wakaba 1.9 DOMLS.pm: ls.cdis $(CDIS2PM_PL)
125     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
126     --module-name=DOMLS > $@
127     $(PERL_CHK) $@
128    
129     ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)
130     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
131     --module-name=ManakaiDOMLS2003 > $@
132 wakaba 1.10 $(PERL_CHK) $@

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24