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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by wakaba, Sun Aug 29 13:34:38 2004 UTC revision 1.10 by wakaba, Fri Dec 31 12:03:40 2004 UTC
# Line 4  RM = rm Line 4  RM = rm
4  SED = sed  SED = sed
5  XARGS = xargs  XARGS = xargs
6    
7  PERL = perl -I../../  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  PERL_CHK = $(PERL) -c -w
14    
15  DIS2PM_PL = dis2pm.pl  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl
16  DIS2PM = $(PERL) $(DIS2PM_PL)  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  IDL2DIS_PL = idl2dis.pl
23  IDL2DIS = $(PERL) $(IDL2DIS_PL)  IDL2DIS = $(PERL) $(IDL2DIS_PL)
24    
25  all: dom-modules  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  dom-modules: ManakaiDOM.pm DOMMain.pm DOMCore.pm  DOMViews.pm: ev.cdis $(CDIS2PM_PL)
90          $(LS) *.dis | $(SED) s/\.dis/.pm/ | $(XARGS) $(MAKE)          $(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  %.pm: %.dis $(DIS2PM_PL)  DOMWebForms.pm: html.cdis $(CDIS2PM_PL)
110          $(DIS2PM) $< > $@          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
111              --module-name=DOMWebForms > $@
112          $(PERL_CHK) $@          $(PERL_CHK) $@
113                    
114  clean:  clean:
115          $(LS) *.dis | $(SED) s/\.dis/.pm/ | $(XARGS) $(RM)          $(RM) $(GENERATED_FILES) .*.tmp
116    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.10

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24