/[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.35 by wakaba, Fri Mar 17 08:06:20 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
11  MAKE = make  MAKE = make
12  RM = rm  RM = rm
13    RMALL = $(RM) -fv
14  PERL = perl  PERL = perl
15  PERL_OPTIONS =  PERL_OPTIONS =
16  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
# Line 27  DIS_OPTIONS = Line 28  DIS_OPTIONS =
28  DIS_OPTIONS_ALL = $(DIS_OPTIONS) \  DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
29        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
30        --dis-file-suffix="$(DIS_SUFFIX)" \        --dis-file-suffix="$(DIS_SUFFIX)" \
31        --daem-file-suffix="$(DAEM_SUFFIX)"        --daem-file-suffix="$(DAEM_SUFFIX)" \
32          --dafx-file-suffix="$(DAFX_SUFFIX)"
33    
34  DAC_OPTIONS =  DAF_OPTIONS =
35  DAC_PL = $(MANAKAI_BIN_DIR)dac.pl  DAF_PL = $(MANAKAI_BIN_DIR)daf.pl
36  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)  
37    
38  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)
39  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 45  XP_DIS_FILES       = XMLParser$(DIS_SUFF
45  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
46  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
47    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
48    DOT_CORE_DIS_FILES = \
49      $(DOM_FEATURE_DIS_FILES) \
50      $(DOM_CORE_DIS_FILES)
51    
52    PM_FILES = \
53      DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
54      DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) Tree$(PM_SUFFIX) \
55      TreeCore$(PM_SUFFIX) \
56      DOMXML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
57      DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
58      SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
59      DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
60    
61  GENERATED_FILES = \  GENERATED_FILES = $(PM_FILES)
62    feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \  
63    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) $@  
64    
65  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
66          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
           --output-file-path="$@"  
67          $(PERL_CHK) $@          $(PERL_CHK) $@
68    
69  .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)  .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
70          $(DAC2PM) $< \          $(DAF) \
71            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
72            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
73            --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 85  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)):
85          $(TOUCH) $@          $(TOUCH) $@
86    ## NOTE: When you modify this rule, update |../Util/Makefile|, too.    ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
87    
 $(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:  
   
88  clean:  clean:
89          $(RM) $(GENERATED_FILES)          $(RMALL) $(GENERATED_FILES)
90          $(RM) .*.tmp *~ .*~ *.BAK .*.BAK          $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
91          $(RM) .core$(PM_SUFFIX)          $(RMALL) .core$(PM_SUFFIX)
92    
93    distclean: clean
94            $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
95    
96  ## $Date$  ## $Date$
97  ## License: Public Domain.  ## License: Public Domain.

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24