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.13 |
DIS_FILES = DOMMetaImpl.dis \ |
35 |
|
|
DOMMain.dis DOMCore.dis DOMXML.dis |
36 |
wakaba |
1.2 |
|
37 |
wakaba |
1.13 |
_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
38 |
wakaba |
1.9 |
DOMLS.dis ManakaiDOMLS2003.dis \ |
39 |
wakaba |
1.10 |
DOMEvents.dis DOMViews.dis \ |
40 |
wakaba |
1.12 |
DOMHTML.dis DOMWebForms.dis \ |
41 |
|
|
DOMMetaImpl.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.13 |
GENERATED_FILES = all.dac DOMMain.pm DOMCore.pm DOMXML.pm |
50 |
|
|
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
51 |
wakaba |
1.7 |
|
52 |
wakaba |
1.13 |
all: $(GENERATED_FILES) |
53 |
wakaba |
1.7 |
|
54 |
wakaba |
1.13 |
all.dac: $(DIS_FILES) $(DAC_PL) |
55 |
|
|
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMCore.dis |
56 |
wakaba |
1.9 |
|
57 |
wakaba |
1.13 |
DOMMain.pm: all.dac $(DAC2PM_PL) |
58 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@ |
59 |
|
|
$(PERL_CHK) $@ |
60 |
wakaba |
1.12 |
|
61 |
wakaba |
1.13 |
DOMCore.pm: all.dac $(DAC2PM_PL) |
62 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@ |
63 |
|
|
$(PERL_CHK) $@ |
64 |
wakaba |
1.7 |
|
65 |
wakaba |
1.13 |
DOMXML.pm: all.dac $(DAC2PM_PL) |
66 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@ |
67 |
|
|
$(PERL_CHK) $@ |
68 |
wakaba |
1.9 |
|
69 |
wakaba |
1.13 |
boot: $(BOOT_GENERATED_FILES) |
70 |
wakaba |
1.7 |
|
71 |
wakaba |
1.13 |
boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE) |
72 |
|
|
$(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis |
73 |
wakaba |
1.12 |
|
74 |
wakaba |
1.13 |
DOMMetaImpl.pm: boot.dac $(DAC2PM_PL) |
75 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" > $@ |
76 |
wakaba |
1.12 |
$(PERL_CHK) $@ |
77 |
wakaba |
1.10 |
|
78 |
wakaba |
1.13 |
# $(CORE_DAC_FILE) |
79 |
|
|
$(MANAKAI_LIB_DIR)manakai/all.dac: \ |
80 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
81 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
82 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
83 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
84 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
85 |
|
|
$(MANAKAI_LIB_DIR)manakai/XML.dis |
86 |
|
|
$(CD) $(MANAKAI_ROOT_DIR)manakai/ && \ |
87 |
|
|
$(MAKE) all.dac |
88 |
wakaba |
1.1 |
|
89 |
wakaba |
1.13 |
# $(UTIL_DAC_FILE) |
90 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/all.dac: |
91 |
|
|
$(CD) $(MANAKAI_ROOT_DIR)Message/Util/ && \ |
92 |
|
|
$(MAKE) all.dac |
93 |
wakaba |
1.9 |
|
94 |
wakaba |
1.13 |
clean: |
95 |
|
|
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |
96 |
wakaba |
1.9 |
|
97 |
|
|
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
98 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
99 |
|
|
--module-name=DOMEvents > $@ |
100 |
|
|
$(PERL_CHK) $@ |
101 |
|
|
|
102 |
wakaba |
1.10 |
DOMViews.pm: ev.cdis $(CDIS2PM_PL) |
103 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
104 |
|
|
--module-name=DOMViews > $@ |
105 |
|
|
$(PERL_CHK) $@ |
106 |
|
|
|
107 |
wakaba |
1.9 |
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
108 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
109 |
|
|
--module-name=DOMLS > $@ |
110 |
|
|
$(PERL_CHK) $@ |
111 |
|
|
|
112 |
|
|
ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL) |
113 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
114 |
|
|
--module-name=ManakaiDOMLS2003 > $@ |
115 |
wakaba |
1.10 |
$(PERL_CHK) $@ |
116 |
|
|
|
117 |
|
|
DOMHTML.pm: html.cdis $(CDIS2PM_PL) |
118 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
119 |
|
|
--module-name=DOMHTML > $@ |
120 |
|
|
$(PERL_CHK) $@ |
121 |
|
|
|
122 |
|
|
DOMWebForms.pm: html.cdis $(CDIS2PM_PL) |
123 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
124 |
|
|
--module-name=DOMWebForms > $@ |
125 |
wakaba |
1.9 |
$(PERL_CHK) $@ |
126 |
wakaba |
1.2 |
|