11 |
DISC = $(PERL) $(DISC_PL) \ |
DISC = $(PERL) $(DISC_PL) \ |
12 |
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
13 |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
14 |
|
-I=$(MANAKAI_LIB_DIR)Message/Markup/ \ |
15 |
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
16 |
CDIS2PM_OPTIONS = --enable-assert |
CDIS2PM_OPTIONS = --enable-assert |
17 |
## TODO: Official release should remove this option. |
## TODO: Official release should remove this option. |
20 |
|
|
21 |
DIS_FILES = ManakaiNode.dis |
DIS_FILES = ManakaiNode.dis |
22 |
GENERATED_FILES = mnode.cdis ManakaiNode.pm \ |
GENERATED_FILES = mnode.cdis ManakaiNode.pm \ |
23 |
Error/err.cdis Error/DOMException.pm |
dis.cdis DIS.pm \ |
24 |
|
Error/err.cdis Error/DOMException.pm \ |
25 |
|
pc.cdis PerlCode.pm |
26 |
|
|
27 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
28 |
|
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
29 |
|
|
30 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
31 |
|
|
33 |
$(DISC) $< --output-file-name=$@ |
$(DISC) $< --output-file-name=$@ |
34 |
|
|
35 |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
36 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \ |
$(CDIS2PM) $< \ |
37 |
--module-name=ManakaiNode > $@ |
--module-name=ManakaiNode > $@ |
38 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
39 |
|
|
40 |
|
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 |
Error/err.cdis: Error/DOMException.dis $(DISC_PL) |
Error/err.cdis: Error/DOMException.dis $(DISC_PL) |
48 |
$(DISC) $< --output-file-name=$@ |
$(DISC) $< --output-file-name=$@ |
49 |
|
|
50 |
Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL) |
Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL) |
51 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \ |
$(CDIS2PM) $< \ |
52 |
--module-name=DOMException > $@ |
--module-name=DOMException > $@ |
53 |
$(PERL_CHK) $@ |
$(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 |
|
$(PERL_CHK) $@ |
62 |
|
|
63 |
clean: |
clean: |
64 |
$(RM) $(GENERATED_FILES) .*.tmp |
$(RM) $(GENERATED_FILES) .*.tmp |