/[suikacvs]/messaging/manakai/lib/Message/DOM/Makefile
Suika

Contents of /messaging/manakai/lib/Message/DOM/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Wed Jan 5 12:19:39 2005 UTC (19 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.10: +4 -2 lines
Assertion in dis perl code implemented; DISPerl:raiseException implemented; Scripts updated for new dis format; NodeList perl array representation implemented

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 wakaba 1.11 CDIS2PM_OPTIONS = --enable-assert
18     ## TODO: Official release should remove this option.
19 wakaba 1.7 CDIS2PM_PL = ../../../bin/cdis2pm.pl
20 wakaba 1.11 CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)
21 wakaba 1.6 DIS2POD_PL = ../../../bin/dis2pm.pl
22     DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only
23 wakaba 1.1
24 wakaba 1.2 IDL2DIS_PL = idl2dis.pl
25     IDL2DIS = $(PERL) $(IDL2DIS_PL)
26    
27 wakaba 1.9 DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
28     DOMLS.dis ManakaiDOMLS2003.dis \
29 wakaba 1.10 DOMEvents.dis DOMViews.dis \
30     DOMHTML.dis DOMWebForms.dis
31 wakaba 1.9
32 wakaba 1.10 GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \
33 wakaba 1.9 DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \
34 wakaba 1.10 DOMEvents.pm DOMViews.pm \
35     DOMHTML.pm DOMWebForms.pm
36 wakaba 1.7 GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST)
37    
38     NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
39    
40 wakaba 1.9 all: dom
41 wakaba 1.7
42     dom: dom-latest
43 wakaba 1.10 dom-latest: $(GENERATED_FILES_DOMLATEST)
44 wakaba 1.9
45     core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL)
46     $(DISC) DOMCore.dis --output-file-name=$@
47 wakaba 1.7
48 wakaba 1.10 ev.cdis: core.cdis DOMEvents.dis DOMViews.dis $(DISC_PL)
49 wakaba 1.9 $(DISC) DOMEvents.dis --input-cdis-file-name=$< \
50 wakaba 1.10 --output-file-name=.$@.1.tmp
51     $(DISC) DOMViews.dis --input-cdis-file-name=.$@.1.tmp \
52     --output-file-name=$@
53     $(RM) .$@.1.tmp
54 wakaba 1.9
55     ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL)
56     $(DISC) DOMLS.dis --input-cdis-file-name=$< \
57     --output-file-name=.$@.1.tmp
58     $(DISC) ManakaiDOMLS2003.dis --input-cdis-file-name=.$@.1.tmp \
59     --output-file-name=$@
60     $(RM) .$@.1.tmp
61 wakaba 1.7
62 wakaba 1.10 html.cdis: ls.cdis DOMHTML.dis DOMWebForms.dis $(DISC_PL)
63     $(DISC) DOMHTML.dis --input-cdis-file-name=$< \
64     --output-file-name=.$@.1.tmp
65     $(DISC) DOMWebForms.dis --input-cdis-file-name=.$@.1.tmp \
66     --output-file-name=$@
67     $(RM) .$@.1.tmp
68    
69 wakaba 1.9 DOMMain.pm: core.cdis $(CDIS2PM_PL)
70 wakaba 1.7 $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \
71 wakaba 1.11 --module-name=DOMMain --nooutput-module-version > $@
72 wakaba 1.7 $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
73     --module-name=DOMMain >> $@
74 wakaba 1.10 $(PERL_CHK) $@
75 wakaba 1.1
76 wakaba 1.10 DOMCore.pm: core.cdis DOMMain.pm $(CDIS2PM_PL)
77 wakaba 1.7 $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
78     --module-name=DOMCore > $@
79 wakaba 1.10 $(PERL_CHK) $@
80 wakaba 1.9
81     DOMXML.pm: core.cdis $(CDIS2PM_PL)
82     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
83     --module-name=DOMXML > $@
84     $(PERL_CHK) $@
85    
86     DOMEvents.pm: ev.cdis $(CDIS2PM_PL)
87     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
88     --module-name=DOMEvents > $@
89     $(PERL_CHK) $@
90    
91 wakaba 1.10 DOMViews.pm: ev.cdis $(CDIS2PM_PL)
92     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
93     --module-name=DOMViews > $@
94     $(PERL_CHK) $@
95    
96 wakaba 1.9 DOMLS.pm: ls.cdis $(CDIS2PM_PL)
97     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
98     --module-name=DOMLS > $@
99     $(PERL_CHK) $@
100    
101     ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)
102     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
103     --module-name=ManakaiDOMLS2003 > $@
104 wakaba 1.10 $(PERL_CHK) $@
105    
106     DOMHTML.pm: html.cdis $(CDIS2PM_PL)
107     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
108     --module-name=DOMHTML > $@
109     $(PERL_CHK) $@
110    
111     DOMWebForms.pm: html.cdis $(CDIS2PM_PL)
112     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
113     --module-name=DOMWebForms > $@
114 wakaba 1.9 $(PERL_CHK) $@
115 wakaba 1.2
116 wakaba 1.3 clean:
117 wakaba 1.9 $(RM) $(GENERATED_FILES) .*.tmp
118 wakaba 1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24