/[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.32 by wakaba, Sun Jan 29 13:58:54 2006 UTC revision 1.33 by wakaba, Sun Feb 26 06:42:56 2006 UTC
# Line 3  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin Line 3  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin
3  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
4    
5  DIS_SUFFIX = .dis  DIS_SUFFIX = .dis
6  DAC_SUFFIX = .dae  DAEM_SUFFIX = .dafm
7  DAEM_SUFFIX = .daem  DAFX_SUFFIX = .dafx
8  PM_SUFFIX = .pm  PM_SUFFIX = .pm
9    
10  CD = cd  CD = cd
# Line 27  DIS_OPTIONS = Line 27  DIS_OPTIONS =
27  DIS_OPTIONS_ALL = $(DIS_OPTIONS) \  DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
28        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
29        --dis-file-suffix="$(DIS_SUFFIX)" \        --dis-file-suffix="$(DIS_SUFFIX)" \
30        --daem-file-suffix="$(DAEM_SUFFIX)"        --daem-file-suffix="$(DAEM_SUFFIX)" \
31          --dafx-file-suffix="$(DAFX_SUFFIX)"
32    
33  DAC_OPTIONS =  DAF_OPTIONS =
34  DAC_PL = $(MANAKAI_BIN_DIR)dac.pl  DAF_PL = $(MANAKAI_BIN_DIR)daf.pl
35  DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \  DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)
       --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \  
       --output-file-name=  
   
 DAC2PM_OPTIONS3 = --enable-assert  
 DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)  
 DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl  
 DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL)  
   
 UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)  
36    
37  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)
38  DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \  DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
# Line 52  XP_DIS_FILES       = XMLParser$(DIS_SUFF Line 44  XP_DIS_FILES       = XMLParser$(DIS_SUFF
44  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
45  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
46    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
47    DOT_CORE_DIS_FILES = \
48      $(DOM_FEATURE_DIS_FILES) \
49      $(DOM_CORE_DIS_FILES)
50    
51    PM_FILES = \
52      DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
53      DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) Tree$(PM_SUFFIX) \
54      DOMXML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
55      DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
56      SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
57      DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
58    
59  GENERATED_FILES = \  GENERATED_FILES = $(PM_FILES)
60    feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \  
61    core$(DAC_SUFFIX)  DOMMain$(PM_SUFFIX) \  all: .core$(PM_SUFFIX) $(PM_FILES)
                      DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) \  
                      Tree$(PM_SUFFIX) \  
                      XDoctype$(PM_SUFFIX) \  
   ls$(DAC_SUFFIX)    SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \  
                      DOMLS$(PM_SUFFIX) \  
   xp$(DAC_SUFFIX)    XMLParser$(PM_SUFFIX) \  
   html$(DAC_SUFFIX)  DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)  
 GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \  
   core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX) xp$(DAC_SUFFIX)  
   
 all: .core$(PM_SUFFIX) .html$(PM_SUFFIX) \  
   $(GENERATED_DAC_FILES) \  
   XMLParser$(PM_SUFFIX)  
   
 feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL)  
         $(DAC)$@ --input-db-file-name="$<" GenericLS.dis  
   
 core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL)  
         $(DAC)$@ --input-db-file-name="$<" XDoctype.dis  
   
 ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL)  
         $(DAC)$@.tmp.1 --input-db-file-name="$<" SimpleLS.dis  
         $(DAC)$@.tmp.2 --input-db-file-name="$@.tmp.1" ManakaiDOMLS2003.dis  
         $(DAC)$@ --input-db-file-name="$@.tmp.2" DOMLS.dis  
         $(RM) $@.tmp.1 $@.tmp.2  
   
 xp$(DAC_SUFFIX): ls$(DAC_SUFFIX) $(XP_DIS_FILES) $(DAC_PL)  
         $(DAC)$@ --input-db-file-name="$<" XMLParser.dis  
   
 html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)  
         $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis  
   
 $(DOM_FEATURE_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): \  
   feature$(DAC_SUFFIX) $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \  
           --output-file-path="$@"  
         $(PERL_CHK) $@  
62    
63  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
64          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
           --output-file-path="$@"  
65          $(PERL_CHK) $@          $(PERL_CHK) $@
66    
67  .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)  .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
68          $(DAC2PM) $< \          $(DAF) \
69            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
70            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
71            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
# Line 118  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): Line 83  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)):
83          $(TOUCH) $@          $(TOUCH) $@
84    ## NOTE: When you modify this rule, update |../Util/Makefile|, too.    ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
85    
 $(DOM_LS_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \  
           --output-file-path="$@"  
         $(PERL_CHK) $@  
   
 $(XP_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): xp$(DAC_SUFFIX) $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \  
           --output-file-path="$@"  
         $(PERL_CHK) $@  
   
 $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@  
         $(PERL_CHK) $@  
   
 feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL)  
         $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \  
           --for="$(NS_MANAKAIDOM)ForSpecLatest"  
   
 # $(UTIL_CORE_DAC_FILE)  
 $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy  
         $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)  
   
 dummy:  
   
86  clean:  clean:
87          $(RM) $(GENERATED_FILES)          $(RM) $(GENERATED_FILES)
88          $(RM) .*.tmp *~ .*~ *.BAK .*.BAK          $(RM) .*.tmp *~ .*~ *.BAK .*.BAK

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24