1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
|
6 |
|
|
RM = rm |
7 |
|
|
PERL = perl -I$(MANAKAI_LIB_DIR) |
8 |
|
|
PERL_CHK = $(PERL) -c -w |
9 |
|
|
|
10 |
|
|
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
11 |
|
|
DISC = $(PERL) $(DISC_PL) \ |
12 |
|
|
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
13 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
14 |
wakaba |
1.3 |
-I=$(MANAKAI_LIB_DIR)Message/Markup/ \ |
15 |
wakaba |
1.1 |
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
16 |
|
|
CDIS2PM_OPTIONS = --enable-assert |
17 |
|
|
## TODO: Official release should remove this option. |
18 |
wakaba |
1.5 |
CDIS2PM_PL = $(MANAKAI_BIN_DIR)cdis2pm.pl |
19 |
wakaba |
1.1 |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
20 |
|
|
|
21 |
wakaba |
1.5 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
22 |
|
|
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
23 |
|
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
24 |
|
|
|
25 |
|
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
26 |
|
|
DAC = $(PERL) $(DAC_PL) \ |
27 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
28 |
|
|
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
29 |
|
|
--output-file-name= |
30 |
|
|
|
31 |
|
|
DAC2PM_OPTIONS = --enable-assert |
32 |
|
|
## TODO: Official release should remove this option. |
33 |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
34 |
|
|
DAC2PM = $(PERL) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
35 |
|
|
|
36 |
|
|
DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis |
37 |
wakaba |
1.2 |
GENERATED_FILES = mnode.cdis ManakaiNode.pm \ |
38 |
wakaba |
1.3 |
dis.cdis DIS.pm \ |
39 |
wakaba |
1.4 |
Error/err.cdis Error/DOMException.pm \ |
40 |
wakaba |
1.5 |
pc.cdis PerlCode.pm \ |
41 |
|
|
all.dac ManakaiNode.pm2 DIS.pm2 PerlCode.pm2 |
42 |
wakaba |
1.1 |
|
43 |
wakaba |
1.5 |
all: $(GENERATED_FILES) |
44 |
|
|
|
45 |
|
|
all.dac: $(DIS_FILES) $(DAC_PL) |
46 |
|
|
$(DAC)$@ DIS.dis |
47 |
|
|
## NOTE: PerlCode and ManakaiNode is referenced by DIS. |
48 |
wakaba |
1.1 |
|
49 |
wakaba |
1.5 |
ManakaiNode.pm2: all.dac $(DAC2PM_PL) |
50 |
|
|
$(DAC2PM) $< \ |
51 |
|
|
--module-uri="$(NS_UTIL)ManakaiNode" > $@ |
52 |
|
|
$(PERL_CHK) $@ |
53 |
|
|
DIS.pm2: all.dac $(DAC2PM_PL) |
54 |
|
|
$(DAC2PM) $< \ |
55 |
|
|
--module-uri="$(NS_UTIL)DIS" > $@ |
56 |
|
|
$(PERL_CHK) $@ |
57 |
|
|
PerlCode.pm2: all.dac $(DAC2PM_PL) |
58 |
|
|
$(DAC2PM) $< \ |
59 |
|
|
--module-uri="$(NS_UTIL)PerlCode" > $@ |
60 |
|
|
$(PERL_CHK) $@ |
61 |
wakaba |
1.1 |
|
62 |
|
|
mnode.cdis: ManakaiNode.dis $(DISC_PL) |
63 |
|
|
$(DISC) $< --output-file-name=$@ |
64 |
|
|
|
65 |
|
|
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
66 |
wakaba |
1.3 |
$(CDIS2PM) $< \ |
67 |
wakaba |
1.1 |
--module-name=ManakaiNode > $@ |
68 |
wakaba |
1.2 |
$(PERL_CHK) $@ |
69 |
|
|
|
70 |
wakaba |
1.3 |
dis.cdis: DIS.dis mnode.cdis $(DISC_PL) |
71 |
|
|
$(DISC) $< --input-cdis-file-name=mnode.cdis --output-file-name=$@ |
72 |
|
|
|
73 |
|
|
DIS.pm: dis.cdis $(CDIS2PM_PL) |
74 |
|
|
$(CDIS2PM) $< --module-name=DIS > $@ |
75 |
|
|
$(PERL_CHK) $@ |
76 |
|
|
|
77 |
wakaba |
1.2 |
Error/err.cdis: Error/DOMException.dis $(DISC_PL) |
78 |
|
|
$(DISC) $< --output-file-name=$@ |
79 |
|
|
|
80 |
|
|
Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL) |
81 |
wakaba |
1.3 |
$(CDIS2PM) $< \ |
82 |
wakaba |
1.2 |
--module-name=DOMException > $@ |
83 |
wakaba |
1.4 |
$(PERL_CHK) $@ |
84 |
|
|
|
85 |
|
|
pc.cdis: PerlCode.dis $(DISC_PL) |
86 |
|
|
$(DISC) $< --output-file-name=$@ |
87 |
|
|
|
88 |
|
|
PerlCode.pm: pc.cdis $(CDIS2PM_PL) |
89 |
|
|
$(CDIS2PM) $< \ |
90 |
|
|
--module-name=PerlCode > $@ |
91 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
92 |
|
|
|
93 |
|
|
clean: |
94 |
|
|
$(RM) $(GENERATED_FILES) .*.tmp |