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.16 |
DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis |
35 |
wakaba |
1.14 |
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.16 |
ManakaiDOMLS2003.dis \ |
41 |
wakaba |
1.14 |
DOMEvents.dis DOMViews.dis |
42 |
wakaba |
1.9 |
|
43 |
wakaba |
1.16 |
GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm \ |
44 |
wakaba |
1.14 |
html.dac DOMHTML.pm DOMWebForms.pm |
45 |
wakaba |
1.13 |
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
46 |
wakaba |
1.7 |
|
47 |
wakaba |
1.13 |
all: $(GENERATED_FILES) |
48 |
wakaba |
1.7 |
|
49 |
wakaba |
1.14 |
core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \ |
50 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
51 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis |
52 |
wakaba |
1.16 |
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMLS.dis |
53 |
wakaba |
1.14 |
|
54 |
|
|
html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac |
55 |
|
|
$(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis |
56 |
wakaba |
1.9 |
|
57 |
wakaba |
1.14 |
DOMMain.pm: core.dac $(DAC2PM_PL) |
58 |
wakaba |
1.16 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" --output-file-path="$@" |
59 |
wakaba |
1.13 |
$(PERL_CHK) $@ |
60 |
wakaba |
1.12 |
|
61 |
wakaba |
1.14 |
DOMCore.pm: core.dac $(DAC2PM_PL) |
62 |
wakaba |
1.16 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" --output-file-path="$@" |
63 |
wakaba |
1.13 |
$(PERL_CHK) $@ |
64 |
wakaba |
1.7 |
|
65 |
wakaba |
1.14 |
DOMXML.pm: core.dac $(DAC2PM_PL) |
66 |
wakaba |
1.16 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" --output-file-path="$@" |
67 |
|
|
$(PERL_CHK) $@ |
68 |
|
|
|
69 |
|
|
DOMLS.pm: core.dac $(DAC2PM_PL) |
70 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMLS" --output-file-path="$@" |
71 |
wakaba |
1.13 |
$(PERL_CHK) $@ |
72 |
wakaba |
1.9 |
|
73 |
wakaba |
1.14 |
DOMHTML.pm: html.dac $(DAC2PM_PL) |
74 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@ |
75 |
|
|
$(PERL_CHK) $@ |
76 |
|
|
|
77 |
|
|
DOMWebForms.pm: html.dac $(DAC2PM_PL) |
78 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@ |
79 |
|
|
$(PERL_CHK) $@ |
80 |
|
|
|
81 |
wakaba |
1.13 |
boot: $(BOOT_GENERATED_FILES) |
82 |
wakaba |
1.7 |
|
83 |
wakaba |
1.13 |
boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE) |
84 |
|
|
$(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis |
85 |
wakaba |
1.12 |
|
86 |
wakaba |
1.13 |
DOMMetaImpl.pm: boot.dac $(DAC2PM_PL) |
87 |
wakaba |
1.16 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" --output-file-path="$@" |
88 |
wakaba |
1.12 |
$(PERL_CHK) $@ |
89 |
wakaba |
1.10 |
|
90 |
wakaba |
1.13 |
# $(CORE_DAC_FILE) |
91 |
|
|
$(MANAKAI_LIB_DIR)manakai/all.dac: \ |
92 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
93 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
94 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
95 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
96 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
97 |
wakaba |
1.14 |
$(MANAKAI_LIB_DIR)manakai/XML.dis \ |
98 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISMarkup.dis |
99 |
|
|
$(CD) $(MANAKAI_LIB_DIR)manakai/ && \ |
100 |
wakaba |
1.13 |
$(MAKE) all.dac |
101 |
wakaba |
1.1 |
|
102 |
wakaba |
1.13 |
# $(UTIL_DAC_FILE) |
103 |
wakaba |
1.14 |
$(MANAKAI_LIB_DIR)Message/Util/all.dac: \ |
104 |
|
|
DOMMetaImpl.dis DOMBoot.dis |
105 |
wakaba |
1.15 |
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && \ |
106 |
wakaba |
1.13 |
$(MAKE) all.dac |
107 |
wakaba |
1.9 |
|
108 |
wakaba |
1.13 |
clean: |
109 |
|
|
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |