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. |
19 |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
20 |
|
|
21 |
DIS_FILES = ManakaiNode.dis |
DIS_FILES = ManakaiNode.dis |
22 |
GENERATED_FILES = mnode.cdis ManakaiNode.pm |
GENERATED_FILES = mnode.cdis ManakaiNode.pm \ |
23 |
|
dis.cdis DIS.pm \ |
24 |
|
Error/err.cdis Error/DOMException.pm |
25 |
|
|
26 |
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\# |
27 |
|
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
28 |
|
|
29 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
30 |
|
|
32 |
$(DISC) $< --output-file-name=$@ |
$(DISC) $< --output-file-name=$@ |
33 |
|
|
34 |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
35 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \ |
$(CDIS2PM) $< \ |
36 |
--module-name=ManakaiNode > $@ |
--module-name=ManakaiNode > $@ |
37 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
38 |
|
|
39 |
|
dis.cdis: DIS.dis mnode.cdis $(DISC_PL) |
40 |
|
$(DISC) $< --input-cdis-file-name=mnode.cdis --output-file-name=$@ |
41 |
|
|
42 |
|
DIS.pm: dis.cdis $(CDIS2PM_PL) |
43 |
|
$(CDIS2PM) $< --module-name=DIS > $@ |
44 |
|
$(PERL_CHK) $@ |
45 |
|
|
46 |
|
Error/err.cdis: Error/DOMException.dis $(DISC_PL) |
47 |
|
$(DISC) $< --output-file-name=$@ |
48 |
|
|
49 |
|
Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL) |
50 |
|
$(CDIS2PM) $< \ |
51 |
|
--module-name=DOMException > $@ |
52 |
|
$(PERL_CHK) $@ |
53 |
|
|
54 |
clean: |
clean: |
55 |
$(RM) $(GENERATED_FILES) .*.tmp |
$(RM) $(GENERATED_FILES) .*.tmp |