/[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.37 by wakaba, Fri Mar 31 16:44:24 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 DOMXML.dis \
40                         Tree$(DIS_SUFFIX) \
41  DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis                       XDoctype$(DIS_SUFFIX)
42  DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis  DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \
43      ManakaiDOMLS2003$(DIS_SUFFIX)
44  DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML)  XP_DIS_FILES       = XMLParser$(DIS_SUFFIX)
45    DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
46  _DIS_FILES = \  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
47    DOMLS.dis ManakaiDOMLS2003.dis \    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
48    DOMEvents.dis DOMViews.dis  DOT_CORE_DIS_FILES = \
49      $(DOM_FEATURE_DIS_FILES) \
50  GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \    $(DOM_CORE_DIS_FILES)
51    DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \  
52    DOMEvents.pm DOMViews.pm \  PM_FILES = \
53    DOMHTML.pm DOMWebForms.pm \    DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
54    meta.cdis DOMMetaImpl.dis    DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) Tree$(PM_SUFFIX) \
55      TreeCore$(PM_SUFFIX) XML$(PM_SUFFIX) \
56  GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \    DOMXML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
57    html.dac DOMHTML.pm DOMWebForms.pm    DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
58  BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm    SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
59      DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
60  all: $(GENERATED_FILES)  
61    GENERATED_FILES = $(PM_FILES)
62  core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \  
63    $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \  all: .core$(PM_SUFFIX) $(PM_FILES)
64    $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis  
65          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
66            $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
67  html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac          $(PERL_CHK) $@
68          $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis  
69    .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
70  DOMMain.pm: core.dac $(DAC2PM_PL)          $(DAF) \
71          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
72          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
73              --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
74  DOMCore.pm: core.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
75          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@            --create-perl-module="$(NS_MDOM)Tree       Tree$(PM_SUFFIX)" \
76          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \
77              --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)"
78  DOMXML.pm: core.dac $(DAC2PM_PL)          $(PERL_CHK) DOMFeature$(PM_SUFFIX)
79          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@          $(PERL_CHK) GenericLS$(PM_SUFFIX)
80          $(PERL_CHK) $@          $(PERL_CHK) DOMMain$(PM_SUFFIX)
81            $(PERL_CHK) DOMCore$(PM_SUFFIX)
82  DOMHTML.pm: html.dac $(DAC2PM_PL)          $(PERL_CHK) Tree$(PM_SUFFIX)
83          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@          $(PERL_CHK) DOMXML$(PM_SUFFIX)
84          $(PERL_CHK) $@          $(PERL_CHK) XDoctype$(PM_SUFFIX)
85            $(TOUCH) $@
86  DOMWebForms.pm: html.dac $(DAC2PM_PL)    ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
         $(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  
   
 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  
         $(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  
87    
88  clean:  clean:
89          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~          $(RMALL) $(GENERATED_FILES)
90            $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
91            $(RMALL) .core$(PM_SUFFIX)
92    
93  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)  clean-db:
94          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
           --module-name=DOMEvents > $@  
         $(PERL_CHK) $@  
95    
96  DOMViews.pm: ev.cdis $(CDIS2PM_PL)  distclean: clean clean-db
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMViews > $@  
         $(PERL_CHK) $@  
97    
98  DOMLS.pm: ls.cdis $(CDIS2PM_PL)  ## $Date$
99          $(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.37

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24