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 |
|
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
19 |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
20 |
|
|
|
21 |
|
|
DIS_FILES = ManakaiNode.dis |
22 |
wakaba |
1.2 |
GENERATED_FILES = mnode.cdis ManakaiNode.pm \ |
23 |
wakaba |
1.3 |
dis.cdis DIS.pm \ |
24 |
wakaba |
1.4 |
Error/err.cdis Error/DOMException.pm \ |
25 |
|
|
pc.cdis PerlCode.pm |
26 |
wakaba |
1.1 |
|
27 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
28 |
wakaba |
1.3 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
29 |
wakaba |
1.1 |
|
30 |
|
|
all: $(GENERATED_FILES) |
31 |
|
|
|
32 |
|
|
mnode.cdis: ManakaiNode.dis $(DISC_PL) |
33 |
|
|
$(DISC) $< --output-file-name=$@ |
34 |
|
|
|
35 |
|
|
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
36 |
wakaba |
1.3 |
$(CDIS2PM) $< \ |
37 |
wakaba |
1.1 |
--module-name=ManakaiNode > $@ |
38 |
wakaba |
1.2 |
$(PERL_CHK) $@ |
39 |
|
|
|
40 |
wakaba |
1.3 |
dis.cdis: DIS.dis mnode.cdis $(DISC_PL) |
41 |
|
|
$(DISC) $< --input-cdis-file-name=mnode.cdis --output-file-name=$@ |
42 |
|
|
|
43 |
|
|
DIS.pm: dis.cdis $(CDIS2PM_PL) |
44 |
|
|
$(CDIS2PM) $< --module-name=DIS > $@ |
45 |
|
|
$(PERL_CHK) $@ |
46 |
|
|
|
47 |
wakaba |
1.2 |
Error/err.cdis: Error/DOMException.dis $(DISC_PL) |
48 |
|
|
$(DISC) $< --output-file-name=$@ |
49 |
|
|
|
50 |
|
|
Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL) |
51 |
wakaba |
1.3 |
$(CDIS2PM) $< \ |
52 |
wakaba |
1.2 |
--module-name=DOMException > $@ |
53 |
wakaba |
1.4 |
$(PERL_CHK) $@ |
54 |
|
|
|
55 |
|
|
pc.cdis: PerlCode.dis $(DISC_PL) |
56 |
|
|
$(DISC) $< --output-file-name=$@ |
57 |
|
|
|
58 |
|
|
PerlCode.pm: pc.cdis $(CDIS2PM_PL) |
59 |
|
|
$(CDIS2PM) $< \ |
60 |
|
|
--module-name=PerlCode > $@ |
61 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
62 |
|
|
|
63 |
|
|
clean: |
64 |
|
|
$(RM) $(GENERATED_FILES) .*.tmp |