/[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.19 by wakaba, Mon Sep 5 05:21:12 2005 UTC revision 1.22 by wakaba, Thu Sep 22 14:25:47 2005 UTC
# Line 2  MANAKAI_ROOT_DIR = ../../../ Line 2  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/
4    
5    DAC_SUFFIX = .dad
6    PM_SUFFIX = .pm
7    
8  CD = cd  CD = cd
9  MAKE = make  MAKE = make
10  RM = rm  RM = rm
# Line 13  PERLC = $(PERL) -c -w Line 16  PERLC = $(PERL) -c -w
16  PERLC_OPTIONS3 = $(PERL_OPTIONS)  PERLC_OPTIONS3 = $(PERL_OPTIONS)
17  PERLC_OPTIONS = $(PERLC_OPTIONS3)  PERLC_OPTIONS = $(PERLC_OPTIONS3)
18  PERL_CHK = $(PERLC) $(PERLC_OPTIONS)  PERL_CHK = $(PERLC) $(PERLC_OPTIONS)
19    TOUCH = touch
20    
21  NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.  NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
22  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\#
# Line 28  DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) Line 32  DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
32  DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl  DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
33  DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)  DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)
34    
35  CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac  UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
 UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac  
   
 DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis DOMFeature.dis  
 DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis  
36    
37  DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML)  DOM_CORE_DIS_FILES = DOMFeature.dis DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis
38    DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
39    DIS_FILES = $(DOM_CORE_DIS_FILES) $(DOM_HTML_DIS_FILES)
40    
41  _DIS_FILES = \  _DIS_FILES = \
42    ManakaiDOMLS2003.dis \    ManakaiDOMLS2003.dis \
43    DOMEvents.dis DOMViews.dis    DOMEvents.dis DOMViews.dis
44    
45  GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm \  GENERATED_FILES = \
46    html.dac DOMHTML.pm DOMWebForms.pm DOMFeature.pm    core$(DAC_SUFFIX)  DOMFeature$(PM_SUFFIX) DOMMain$(PM_SUFFIX) \
47  BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm                       DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \
48      html$(DAC_SUFFIX)  DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
49  all: $(GENERATED_FILES)  GENERATED_DAC_FILES = core$(DAC_SUFFIX) html$(DAC_SUFFIX)
50    
51  core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \  all: .core$(PM_SUFFIX) .html$(PM_SUFFIX) $(GENERATED_DAC_FILES)
52    $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \  
53    $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis  core$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_CORE_DIS_FILES) $(DAC_PL)
54          $(CD) $(MANAKAI_LIB_DIR) && $(MAKE) ../lib/Message/DOM/DOMLS.pm          $(DAC)$@ --input-db-file-name="$<" DOMLS.dis
55          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMLS.dis  
56    html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
57  html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac          $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
58          $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis  
59    $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)
60  DOMFeature.pm: core.dac $(DAC2PM_PL)          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
61          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMFeature" --output-file-path="$@"            --output-file-path="$@"
62          $(PERL_CHK) $@          $(PERL_CHK) $@
63    
64  DOMMain.pm: core.dac $(DAC2PM_PL)  .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)
65          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" --output-file-path="$@"          $(DAC2PM) $< \
66          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
67              --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
68  DOMCore.pm: core.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
69          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" --output-file-path="$@"            --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \
70          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)DOMLS      DOMLS$(PM_SUFFIX)"
71            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
72  DOMXML.pm: core.dac $(DAC2PM_PL)          $(PERL_CHK) DOMMain$(PM_SUFFIX)
73          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" --output-file-path="$@"          $(PERL_CHK) DOMCore$(PM_SUFFIX)
74          $(PERL_CHK) $@          $(PERL_CHK) DOMXML$(PM_SUFFIX)
75            $(PERL_CHK) DOMLS$(PM_SUFFIX)
76  DOMLS.pm: core.dac $(DAC2PM_PL)          $(TOUCH) $@
77          $(CD) $(MANAKAI_LIB_DIR) && $(MAKE) ../lib/Message/DOM/DOMLS.pm  
78          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMLS" --output-file-path="$@"  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
79          $(PERL_CHK) $@          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@
80            $(PERL_CHK) $@
81  DOMHTML.pm: html.dac $(DAC2PM_PL)  
82          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@  .html$(PM_SUFFIX): html$(DAC_SUFFIX) $(DAC2PM_PL)
83          $(PERL_CHK) $@          $(DAC2PM) $< \
84              --create-perl-module="$(NS_MDOM)DOMHTML     DOMHTML$(PM_SUFFIX)" \
85  DOMWebForms.pm: html.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)DOMWebForms DOMWebForms$(PM_SUFFIX)"
86          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@          $(PERL_CHK) DOMHTML$(PM_SUFFIX)
87          $(PERL_CHK) $@          $(PERL_CHK) DOMWebForms$(PM_SUFFIX)
88            $(TOUCH) $@
89    
90    # $(UTIL_CORE_DAC_FILE)
91    $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
92            $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
93    
94  boot: $(BOOT_GENERATED_FILES)  dummy:
   
 boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE)  
         $(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis  
   
 DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" --output-file-path="$@"  
         $(PERL_CHK) $@  
   
 # $(CORE_DAC_FILE)  
 $(MANAKAI_LIB_DIR)manakai/all.dac: \  
   $(MANAKAI_LIB_DIR)manakai/DISCore.dis \  
   $(MANAKAI_LIB_DIR)manakai/DISRDF.dis \  
   $(MANAKAI_LIB_DIR)manakai/DISLang.dis \  
   $(MANAKAI_LIB_DIR)manakai/DISIDL.dis \  
   $(MANAKAI_LIB_DIR)manakai/DISPerl.dis \  
   $(MANAKAI_LIB_DIR)manakai/XML.dis \  
   $(MANAKAI_LIB_DIR)manakai/DISMarkup.dis \  
   $(MANAKAI_LIB_DIR)manakai/NaturalLanguage.dis  
         $(CD) $(MANAKAI_LIB_DIR)manakai/ && \  
           $(MAKE) all.dac  
   
 # $(UTIL_DAC_FILE)  
 $(MANAKAI_LIB_DIR)Message/Util/all.dac: \  
   DOMMetaImpl.dis DOMBoot.dis  
         $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && \  
           $(MAKE) all.dac  
95    
96  clean:  clean:
97          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~          $(RM) $(GENERATED_FILES)
98            $(RM) .*.tmp *~ .*~ *.BAK .*.BAK .core$(PM_SUFFIX) .html$(PM_SUFFIX)
99    
100    ## $Date$
101    ## License: Public Domain.

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.22

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24