1 |
wakaba |
1.1 |
LS = ls |
2 |
|
|
MAKE = make |
3 |
wakaba |
1.3 |
RM = rm |
4 |
wakaba |
1.1 |
SED = sed |
5 |
|
|
XARGS = xargs |
6 |
|
|
|
7 |
wakaba |
1.7 |
MANAKAI_ROOT_DIR = ../../../ |
8 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
9 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
10 |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
11 |
|
|
|
12 |
|
|
PERL = perl -I$(MANAKAI_LIB_DIR) |
13 |
wakaba |
1.3 |
PERL_CHK = $(PERL) -c -w |
14 |
wakaba |
1.1 |
|
15 |
wakaba |
1.7 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
16 |
|
|
DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR) |
17 |
|
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
18 |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) |
19 |
wakaba |
1.6 |
DIS2POD_PL = ../../../bin/dis2pm.pl |
20 |
|
|
DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only |
21 |
wakaba |
1.1 |
|
22 |
wakaba |
1.2 |
IDL2DIS_PL = idl2dis.pl |
23 |
|
|
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
24 |
|
|
|
25 |
wakaba |
1.9 |
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
26 |
|
|
DOMLS.dis ManakaiDOMLS2003.dis \ |
27 |
|
|
DOMEvents.dis |
28 |
|
|
|
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 |
wakaba |
1.7 |
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
33 |
|
|
|
34 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
35 |
|
|
|
36 |
wakaba |
1.9 |
all: dom |
37 |
wakaba |
1.7 |
|
38 |
|
|
dom: dom-latest |
39 |
wakaba |
1.9 |
dom-latest: DOMMain.pm-chk DOMCore.pm-chk \ |
40 |
|
|
$(GENERATED_FILES_DOMLATEST) |
41 |
|
|
|
42 |
|
|
core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL) |
43 |
|
|
$(DISC) DOMCore.dis --output-file-name=$@ |
44 |
wakaba |
1.7 |
|
45 |
wakaba |
1.9 |
ev.cdis: core.cdis DOMEvents.dis $(DISC_PL) |
46 |
|
|
$(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 |
wakaba |
1.7 |
|
56 |
wakaba |
1.9 |
DOMMain.pm: core.cdis $(CDIS2PM_PL) |
57 |
wakaba |
1.7 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
58 |
|
|
--module-name=DOMMain > $@ |
59 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
60 |
|
|
--module-name=DOMMain >> $@ |
61 |
wakaba |
1.1 |
|
62 |
wakaba |
1.9 |
DOMMain.pm-chk: DOMMain.pm |
63 |
|
|
$(PERL_CHK) $< |
64 |
wakaba |
1.1 |
|
65 |
wakaba |
1.9 |
DOMCore.pm: core.cdis $(CDIS2PM_PL) |
66 |
wakaba |
1.7 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
67 |
|
|
--module-name=DOMCore > $@ |
68 |
wakaba |
1.6 |
|
69 |
wakaba |
1.9 |
DOMCore.pm-chk: DOMCore.pm |
70 |
|
|
$(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 |
wakaba |
1.2 |
|
92 |
wakaba |
1.3 |
clean: |
93 |
wakaba |
1.9 |
$(RM) $(GENERATED_FILES) .*.tmp |
94 |
wakaba |
1.2 |
|