/[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.10 - (show annotations) (download)
Fri Dec 31 12:03:40 2004 UTC (19 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.9: +36 -14 lines
DISPerl:ScalarVariable: new type; domtest: New cdis support

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24