/[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.9 by wakaba, Wed Dec 29 12:17:42 2004 UTC revision 1.31 by wakaba, Sat Jan 7 12:30:53 2006 UTC
# Line 1  Line 1 
 LS = ls  
 MAKE = make  
 RM = rm  
 SED = sed  
 XARGS = xargs  
   
1  MANAKAI_ROOT_DIR = ../../../  MANAKAI_ROOT_DIR = ../../../
2  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
3  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
 MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/  
4    
5  PERL = perl -I$(MANAKAI_LIB_DIR)  DIS_SUFFIX = .dis
6  PERL_CHK = $(PERL) -c -w  DAC_SUFFIX = .dae
7    DAEM_SUFFIX = .daem
8    PM_SUFFIX = .pm
9    
10  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl  CD = cd
11  DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR)  MAKE = make
12  CDIS2PM_PL = ../../../bin/cdis2pm.pl  RM = rm
13  CDIS2PM = $(PERL) $(CDIS2PM_PL)  PERL = perl
14  DIS2POD_PL = ../../../bin/dis2pm.pl  PERL_OPTIONS =
15  DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
16    PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
17  IDL2DIS_PL = idl2dis.pl  PERLC = $(PERL) -c -w
18  IDL2DIS = $(PERL) $(IDL2DIS_PL)  PERLC_OPTIONS =
19    PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
20  DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
21    DOMLS.dis ManakaiDOMLS2003.dis \  TOUCH = touch
   DOMEvents.dis  
   
 GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis \  
   DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \  
   DOMEvents.pm  
 GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST)  
22    
23    NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
24  NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#  NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
25    
26  all: dom  DIS_OPTIONS =
27    DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
28          --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
29          --dis-file-suffix="$(DIS_SUFFIX)" \
30          --daem-file-suffix="$(DAEM_SUFFIX)"
31    
32    DAC_OPTIONS =
33    DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
34    DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \
35          --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
36          --output-file-name=
37    
38    DAC2PM_OPTIONS3 = --enable-assert
39    DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
40    DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
41    DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL)
42    
43    UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
44    
45    DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX)
46    DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
47                         DOMLS.dis GenericLS.dis Tree$(DIS_SUFFIX) \
48                         XDoctype$(DIS_SUFFIX)
49    DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) ManakaiDOMLS2003$(DIS_SUFFIX)
50    XP_DIS_FILES       = XMLParser$(DIS_SUFFIX)
51    DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
52    DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
53      $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
54    
55    GENERATED_FILES = \
56      feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) \
57      core$(DAC_SUFFIX)  DOMMain$(PM_SUFFIX) \
58                         DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \
59                         GenericLS$(PM_SUFFIX) Tree$(PM_SUFFIX) \
60                         XDoctype$(PM_SUFFIX) \
61      ls$(DAC_SUFFIX)    SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
62      xp$(DAC_SUFFIX)    XMLParser$(PM_SUFFIX) \
63      html$(DAC_SUFFIX)  DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
64    GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \
65      core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX) xp$(DAC_SUFFIX)
66    
67    all: .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) \
68      $(GENERATED_DAC_FILES) \
69      XMLParser$(PM_SUFFIX)
70    
71    feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL)
72            $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis
73    
74    core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL)
75            $(DAC)$@.tmp.1 --input-db-file-name="$<" DOMLS.dis
76            $(DAC)$@ --input-db-file-name="$@.tmp.1" GenericLS.dis
77            $(RM) $@.tmp.1
78    
79    ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL)
80            $(DAC)$@.tmp.1 --input-db-file-name="$<" SimpleLS.dis
81            $(DAC)$@ --input-db-file-name="$@.tmp.1" ManakaiDOMLS2003.dis
82            $(RM) $@.tmp.1
83    
84    xp$(DAC_SUFFIX): ls$(DAC_SUFFIX) $(XP_DIS_FILES) $(DAC_PL)
85            $(DAC)$@ --input-db-file-name="$<" XMLParser.dis
86    
87    html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
88            $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
89    
90    $(DOM_FEATURE_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): \
91      feature$(DAC_SUFFIX) $(DAC2PM_PL)
92            $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
93              --output-file-path="$@"
94            $(PERL_CHK) $@
95    
96  dom: dom-latest  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)
97  dom-latest: DOMMain.pm-chk DOMCore.pm-chk \          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
98          $(GENERATED_FILES_DOMLATEST)            --output-file-path="$@"
   
 core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL)  
         $(DISC) DOMCore.dis --output-file-name=$@  
   
 ev.cdis: core.cdis DOMEvents.dis $(DISC_PL)  
         $(DISC) DOMEvents.dis --input-cdis-file-name=$< \  
                             --output-file-name=$@  
   
 ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL)  
         $(DISC) DOMLS.dis --input-cdis-file-name=$< \  
                             --output-file-name=.$@.1.tmp  
         $(DISC) ManakaiDOMLS2003.dis --input-cdis-file-name=.$@.1.tmp \  
                             --output-file-name=$@  
         $(RM) .$@.1.tmp  
   
 DOMMain.pm: core.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \  
           --module-name=DOMMain > $@  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMMain >> $@  
   
 DOMMain.pm-chk: DOMMain.pm  
         $(PERL_CHK) $<  
   
 DOMCore.pm: core.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMCore > $@  
   
 DOMCore.pm-chk: DOMCore.pm  
         $(PERL_CHK) $<  
   
 DOMXML.pm: core.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMXML > $@  
99          $(PERL_CHK) $@          $(PERL_CHK) $@
100    
101  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)  .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)
102          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAC2PM) $< \
103            --module-name=DOMEvents > $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
104              --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
105              --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
106              --create-perl-module="$(NS_MDOM)Tree       Tree$(PM_SUFFIX)" \
107              --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \
108              --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)" \
109              --create-perl-module="$(NS_MDOM)DOMLS      DOMLS$(PM_SUFFIX)" \
110              --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)"
111            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
112            $(PERL_CHK) DOMMain$(PM_SUFFIX)
113            $(PERL_CHK) DOMCore$(PM_SUFFIX)
114            $(PERL_CHK) Tree$(PM_SUFFIX)
115            $(PERL_CHK) DOMXML$(PM_SUFFIX)
116            $(PERL_CHK) XDoctype$(PM_SUFFIX)
117            $(PERL_CHK) DOMLS$(PM_SUFFIX)
118            $(PERL_CHK) GenericLS$(PM_SUFFIX)
119            $(TOUCH) $@
120      ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
121    
122    $(DOM_LS_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL)
123            $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
124              --output-file-path="$@"
125          $(PERL_CHK) $@          $(PERL_CHK) $@
126    
127  DOMLS.pm: ls.cdis $(CDIS2PM_PL)  .ls$(PM_SUFFIX): ls$(DAC_SUFFIX) $(DAC2PM_PL)
128          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAC2PM) $< \
129            --module-name=DOMLS > $@            --create-perl-module="$(NS_MDOM)SimpleLS SimpleLS$(PM_SUFFIX)" \
130              --create-perl-module="$(NS_MDOM)ManakaiDOMLS2003 ManakaiDOMLS2003$(PM_SUFFIX)"
131            $(PERL_CHK) SimpleLS$(PM_SUFFIX)
132            $(PERL_CHK) ManakaiDOMLS2003$(PM_SUFFIX)
133            $(TOUCH) $@
134    
135    $(XP_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): xp$(DAC_SUFFIX) $(DAC2PM_PL)
136            $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
137              --output-file-path="$@"
138          $(PERL_CHK) $@          $(PERL_CHK) $@
139    
140  ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
141          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@
           --module-name=ManakaiDOMLS2003 > $@  
142          $(PERL_CHK) $@          $(PERL_CHK) $@
143            
144    .html$(PM_SUFFIX): html$(DAC_SUFFIX) $(DAC2PM_PL)
145            $(DAC2PM) $< \
146              --create-perl-module="$(NS_MDOM)DOMHTML     DOMHTML$(PM_SUFFIX)" \
147              --create-perl-module="$(NS_MDOM)DOMWebForms DOMWebForms$(PM_SUFFIX)"
148            $(PERL_CHK) DOMHTML$(PM_SUFFIX)
149            $(PERL_CHK) DOMWebForms$(PM_SUFFIX)
150            $(TOUCH) $@
151    
152    feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL)
153            $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \
154              --for="$(NS_MANAKAIDOM)ForSpecLatest"
155    
156    # $(UTIL_CORE_DAC_FILE)
157    $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
158            $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
159    
160    dummy:
161    
162  clean:  clean:
163          $(RM) $(GENERATED_FILES) .*.tmp          $(RM) $(GENERATED_FILES)
164            $(RM) .*.tmp *~ .*~ *.BAK .*.BAK
165            $(RM) .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX)
166    
167    ## $Date$
168    ## License: Public Domain.

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.31

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24