/[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.14 by wakaba, Sat May 7 13:56:36 2005 UTC revision 1.43 by wakaba, Sat May 13 12:06: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                       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) XDP$(DIS_SUFFIX)
47    DOMLS.dis 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_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \    $(DOM_MISC_DIS_FILES)
51    DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \  DOT_CORE_DIS_FILES = \
52    DOMEvents.pm DOMViews.pm \    $(DOM_FEATURE_DIS_FILES) \
53    DOMHTML.pm DOMWebForms.pm \    $(DOM_CORE_DIS_FILES)
54    meta.cdis DOMMetaImpl.dis  
55    PM_FILES = \
56  GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \    DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
57    html.dac DOMHTML.pm DOMWebForms.pm    DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) \
58  BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm    TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \
59      CharacterData$(PM_SUFFIX) XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
60  all: $(GENERATED_FILES)    DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
61      SimpleLS$(PM_SUFFIX) TreeStore$(PM_SUFFIX) \
62  core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \    Traversal$(PM_SUFFIX) \
63    $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \    XDP$(PM_SUFFIX) \
64    $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis    DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
65          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis  
66    GENERATED_FILES = $(PM_FILES)
67  html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac  
68          $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis  all: .core$(PM_SUFFIX) $(PM_FILES)
69    
70  DOMMain.pm: core.dac $(DAC2PM_PL)  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
71          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
72          $(PERL_CHK) $@          $(PERL_CHK) $@
73    
74  DOMCore.pm: core.dac $(DAC2PM_PL)  .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
75          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@          $(DAF) \
76          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
77              --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
78  DOMXML.pm: core.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
79          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@            --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
80          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)TreeCore   TreeCore$(PM_SUFFIX)" \
81              --create-perl-module="$(NS_MDOM)Document   Document$(PM_SUFFIX)" \
82  DOMHTML.pm: html.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)Element    Element$(PM_SUFFIX)" \
83          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@            --create-perl-module="$(NS_MDOM)CharacterData CharacterData$(PM_SUFFIX)" \
84          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)XML        XML$(PM_SUFFIX)" \
85              --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)"
86  DOMWebForms.pm: html.dac $(DAC2PM_PL)          $(PERL_CHK) DOMFeature$(PM_SUFFIX)
87          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@          $(PERL_CHK) GenericLS$(PM_SUFFIX)
88          $(PERL_CHK) $@          $(PERL_CHK) DOMMain$(PM_SUFFIX)
89            $(PERL_CHK) DOMCore$(PM_SUFFIX)
90  boot: $(BOOT_GENERATED_FILES)          $(PERL_CHK) TreeCore$(PM_SUFFIX)
91            $(PERL_CHK) Document$(PM_SUFFIX)
92  boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE)          $(PERL_CHK) Element$(PM_SUFFIX)
93          $(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis          $(PERL_CHK) CharacterData$(PM_SUFFIX)
94            $(PERL_CHK) XML$(PM_SUFFIX)
95  DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)          $(PERL_CHK) XDoctype$(PM_SUFFIX)
96          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" \          $(TOUCH) $@
97            --output-file-path="$@"    ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
         $(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  
         $(CD) $(MANAKAI_LIB_DIR)manakai/ && \  
           $(MAKE) all.dac  
   
 # $(UTIL_DAC_FILE)  
 $(MANAKAI_LIB_DIR)Message/Util/all.dac: \  
   DOMMetaImpl.dis DOMBoot.dis  
         $(CD) $(MANAKAI_ROOT_DIR)Message/Util/ && \  
           $(MAKE) all.dac  
98    
99  clean:  clean:
100          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~          $(RMALL) $(GENERATED_FILES)
101            $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
102            $(RMALL) .core$(PM_SUFFIX)
103    
104  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)  clean-db:
105          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
           --module-name=DOMEvents > $@  
         $(PERL_CHK) $@  
106    
107  DOMViews.pm: ev.cdis $(CDIS2PM_PL)  distclean: clean clean-db
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMViews > $@  
         $(PERL_CHK) $@  
108    
109  DOMLS.pm: ls.cdis $(CDIS2PM_PL)  ## $Date$
110          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  ## License: Public Domain.
           --module-name=DOMLS > $@  
         $(PERL_CHK) $@  
   
 ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=ManakaiDOMLS2003 > $@  
         $(PERL_CHK) $@  

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.43

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24