22 |
IDL2DIS_PL = idl2dis.pl |
IDL2DIS_PL = idl2dis.pl |
23 |
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
24 |
|
|
25 |
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis |
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
26 |
|
DOMLS.dis ManakaiDOMLS2003.dis \ |
27 |
MAIN_CDIS_FILE = mdom.cdis |
DOMEvents.dis |
28 |
GENERATED_FILES_DOMLATEST = DOMMain.pm DOMCore.pm |
|
29 |
|
GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis \ |
30 |
|
DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \ |
31 |
|
DOMEvents.pm |
32 |
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
33 |
|
|
34 |
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\# |
35 |
|
|
36 |
all: $(MAIN_CDIS_FILE) dom |
all: dom |
37 |
|
|
38 |
dom: dom-latest |
dom: dom-latest |
39 |
dom-latest: $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) \ |
dom-latest: DOMMain.pm-chk DOMCore.pm-chk \ |
40 |
DOMMain.pm-chk DOMCore.pm-chk |
$(GENERATED_FILES_DOMLATEST) |
41 |
|
|
42 |
|
core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL) |
43 |
|
$(DISC) DOMCore.dis --output-file-name=$@ |
44 |
|
|
45 |
$(MAIN_CDIS_FILE): $(DIS_FILES) $(DISC_PL) |
ev.cdis: core.cdis DOMEvents.dis $(DISC_PL) |
46 |
$(DISC) DOMMain.dis --output-file-name=$@ |
$(DISC) DOMEvents.dis --input-cdis-file-name=$< \ |
47 |
|
--output-file-name=$@ |
48 |
|
|
49 |
|
ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL) |
50 |
|
$(DISC) DOMLS.dis --input-cdis-file-name=$< \ |
51 |
|
--output-file-name=.$@.1.tmp |
52 |
|
$(DISC) ManakaiDOMLS2003.dis --input-cdis-file-name=.$@.1.tmp \ |
53 |
|
--output-file-name=$@ |
54 |
|
$(RM) .$@.1.tmp |
55 |
|
|
56 |
DOMMain.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL) |
DOMMain.pm: core.cdis $(CDIS2PM_PL) |
57 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
58 |
--module-name=DOMMain > $@ |
--module-name=DOMMain > $@ |
59 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
60 |
--module-name=DOMMain >> $@ |
--module-name=DOMMain >> $@ |
61 |
|
|
62 |
DOMMain.pm-chk: |
DOMMain.pm-chk: DOMMain.pm |
63 |
$(PERL_CHK) DOMMain.pm |
$(PERL_CHK) $< |
64 |
|
|
65 |
DOMCore.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL) |
DOMCore.pm: core.cdis $(CDIS2PM_PL) |
66 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
67 |
--module-name=DOMCore > $@ |
--module-name=DOMCore > $@ |
68 |
|
|
69 |
DOMCore.pm-chk: |
DOMCore.pm-chk: DOMCore.pm |
70 |
$(PERL_CHK) DOMCore.pm |
$(PERL_CHK) $< |
71 |
|
|
72 |
|
DOMXML.pm: core.cdis $(CDIS2PM_PL) |
73 |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
74 |
|
--module-name=DOMXML > $@ |
75 |
|
$(PERL_CHK) $@ |
76 |
|
|
77 |
|
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
78 |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
79 |
|
--module-name=DOMEvents > $@ |
80 |
|
$(PERL_CHK) $@ |
81 |
|
|
82 |
|
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
83 |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
84 |
|
--module-name=DOMLS > $@ |
85 |
|
$(PERL_CHK) $@ |
86 |
|
|
87 |
|
ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL) |
88 |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
89 |
|
--module-name=ManakaiDOMLS2003 > $@ |
90 |
|
$(PERL_CHK) $@ |
91 |
|
|
92 |
clean: |
clean: |
93 |
$(RM) $(GENERATED_FILES) |
$(RM) $(GENERATED_FILES) .*.tmp |
94 |
|
|