/[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 - (hide 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 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 wakaba 1.10 DOMEvents.dis DOMViews.dis \
28     DOMHTML.dis DOMWebForms.dis
29 wakaba 1.9
30 wakaba 1.10 GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \
31 wakaba 1.9 DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \
32 wakaba 1.10 DOMEvents.pm DOMViews.pm \
33     DOMHTML.pm DOMWebForms.pm
34 wakaba 1.7 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 wakaba 1.9 all: dom
39 wakaba 1.7
40     dom: dom-latest
41 wakaba 1.10 dom-latest: $(GENERATED_FILES_DOMLATEST)
42 wakaba 1.9
43     core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL)
44     $(DISC) DOMCore.dis --output-file-name=$@
45 wakaba 1.7
46 wakaba 1.10 ev.cdis: core.cdis DOMEvents.dis DOMViews.dis $(DISC_PL)
47 wakaba 1.9 $(DISC) DOMEvents.dis --input-cdis-file-name=$< \
48 wakaba 1.10 --output-file-name=.$@.1.tmp
49     $(DISC) DOMViews.dis --input-cdis-file-name=.$@.1.tmp \
50     --output-file-name=$@
51     $(RM) .$@.1.tmp
52 wakaba 1.9
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 wakaba 1.7
60 wakaba 1.10 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 wakaba 1.9 DOMMain.pm: core.cdis $(CDIS2PM_PL)
68 wakaba 1.7 $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \
69     --module-name=DOMMain > $@
70     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
71     --module-name=DOMMain >> $@
72 wakaba 1.10 $(PERL_CHK) $@
73 wakaba 1.1
74 wakaba 1.10 DOMCore.pm: core.cdis DOMMain.pm $(CDIS2PM_PL)
75 wakaba 1.7 $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
76     --module-name=DOMCore > $@
77 wakaba 1.10 $(PERL_CHK) $@
78 wakaba 1.9
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 wakaba 1.10 DOMViews.pm: ev.cdis $(CDIS2PM_PL)
90     $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
91     --module-name=DOMViews > $@
92     $(PERL_CHK) $@
93    
94 wakaba 1.9 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 wakaba 1.10 $(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 wakaba 1.9 $(PERL_CHK) $@
113 wakaba 1.2
114 wakaba 1.3 clean:
115 wakaba 1.9 $(RM) $(GENERATED_FILES) .*.tmp
116 wakaba 1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24