/[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.42 by wakaba, Sun Apr 30 07:58:21 2006 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    DIS_SUFFIX = .dis
6    DAEM_SUFFIX = .dafm
7    DAFX_SUFFIX = .dafx
8    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_OPTIONS3 = -I$(MANAKAI_LIB_DIR)  PERL_OPTIONS =
16  PERL_OPTIONS = $(PERL_OPTIONS3)  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
17  PERL_ = $(PERL) $(PERL_OPTIONS)  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
18  PERLC = $(PERL) -c -w  PERLC = $(PERL) -c -w
19  PERLC_OPTIONS3 = $(PERL_OPTIONS)  PERLC_OPTIONS =
20  PERLC_OPTIONS = $(PERLC_OPTIONS3)  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
21  PERL_CHK = $(PERLC) $(PERLC_OPTIONS)  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
22    TOUCH = touch
23    
24  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.
25  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\#
26    
27  DAC_PL = $(MANAKAI_BIN_DIR)dac.pl  DIS_OPTIONS =
28  DAC = $(PERL_) $(DAC_PL) \  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        --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \        --dis-file-suffix="$(DIS_SUFFIX)" \
31        --output-file-name=        --daem-file-suffix="$(DAEM_SUFFIX)" \
32          --dafx-file-suffix="$(DAFX_SUFFIX)"
33  DAC2PM_OPTIONS3 = --enable-assert  
34  DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)  DAF_OPTIONS =
35  DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl  DAF_PL = $(MANAKAI_BIN_DIR)daf.pl
36  DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)  DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)
37    
38  CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)
39  UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac  DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis \
40                         TreeCore$(DIS_SUFFIX) Document$(DIS_SUFFIX) \
41  DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis DOMFeature.dis                       Element$(DIS_SUFFIX) CharacterData$(DIS_SUFFIX) \
42  DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis                       XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX)
43    DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \
44  DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML)    TreeStore$(DIS_SUFFIX)
45    XP_DIS_FILES       = XMLParser$(DIS_SUFFIX)
46  _DIS_FILES = \  DOM_MISC_DIS_FILES = Traversal$(DIS_SUFFIX)
47    ManakaiDOMLS2003.dis \  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
48    DOMEvents.dis DOMViews.dis  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
49      $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES) \
50  GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm \    $(DOM_MISC_DIS_FILES)
51    html.dac DOMHTML.pm DOMWebForms.pm DOMFeature.pm  DOT_CORE_DIS_FILES = \
52  BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm    $(DOM_FEATURE_DIS_FILES) \
53      $(DOM_CORE_DIS_FILES)
54  all: $(GENERATED_FILES)  
55    PM_FILES = \
56  core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \    DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
57    $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \    DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) \
58    $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis    TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \
59          $(CD) $(MANAKAI_LIB_DIR) && $(MAKE) ../lib/Message/DOM/DOMLS.pm    CharacterData$(PM_SUFFIX) XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
60          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMLS.dis    DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
61      SimpleLS$(PM_SUFFIX) TreeStore$(PM_SUFFIX) \
62  html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac    Traversal$(PM_SUFFIX) \
63          $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis    DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
64    
65  DOMFeature.pm: core.dac $(DAC2PM_PL)  GENERATED_FILES = $(PM_FILES)
66          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMFeature" --output-file-path="$@"  
67          $(PERL_CHK) $@  all: .core$(PM_SUFFIX) $(PM_FILES)
68    
69  DOMMain.pm: core.dac $(DAC2PM_PL)  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
70          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" --output-file-path="$@"          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
71          $(PERL_CHK) $@          $(PERL_CHK) $@
72    
73    .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
74            $(DAF) \
75              --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
76              --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
77              --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
78              --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
79              --create-perl-module="$(NS_MDOM)TreeCore   TreeCore$(PM_SUFFIX)" \
80              --create-perl-module="$(NS_MDOM)Document   Document$(PM_SUFFIX)" \
81              --create-perl-module="$(NS_MDOM)Element    Element$(PM_SUFFIX)" \
82              --create-perl-module="$(NS_MDOM)CharacterData CharacterData$(PM_SUFFIX)" \
83              --create-perl-module="$(NS_MDOM)XML        XML$(PM_SUFFIX)" \
84              --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)"
85            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
86            $(PERL_CHK) GenericLS$(PM_SUFFIX)
87            $(PERL_CHK) DOMMain$(PM_SUFFIX)
88            $(PERL_CHK) DOMCore$(PM_SUFFIX)
89            $(PERL_CHK) TreeCore$(PM_SUFFIX)
90            $(PERL_CHK) Document$(PM_SUFFIX)
91            $(PERL_CHK) Element$(PM_SUFFIX)
92            $(PERL_CHK) CharacterData$(PM_SUFFIX)
93            $(PERL_CHK) XML$(PM_SUFFIX)
94            $(PERL_CHK) XDoctype$(PM_SUFFIX)
95            $(TOUCH) $@
96      ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
97    
98  DOMCore.pm: core.dac $(DAC2PM_PL)  clean:
99          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" --output-file-path="$@"          $(RMALL) $(GENERATED_FILES)
100          $(PERL_CHK) $@          $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
101            $(RMALL) .core$(PM_SUFFIX)
 DOMXML.pm: core.dac $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" --output-file-path="$@"  
         $(PERL_CHK) $@  
   
 DOMLS.pm: core.dac $(DAC2PM_PL)  
         $(CD) $(MANAKAI_LIB_DIR) && $(MAKE) ../lib/Message/DOM/DOMLS.pm  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMLS" --output-file-path="$@"  
         $(PERL_CHK) $@  
   
 DOMHTML.pm: html.dac $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@  
         $(PERL_CHK) $@  
   
 DOMWebForms.pm: html.dac $(DAC2PM_PL)  
         $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@  
         $(PERL_CHK) $@  
   
 boot: $(BOOT_GENERATED_FILES)  
   
 boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE)  
         $(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis  
102    
103  DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)  clean-db:
104          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" --output-file-path="$@"          $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
         $(PERL_CHK) $@  
105    
106  # $(CORE_DAC_FILE)  distclean: clean clean-db
 $(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  
107    
108  clean:  ## $Date$
109          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~  ## License: Public Domain.

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24