/[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.16 by wakaba, Wed May 11 14:07:41 2005 UTC revision 1.39 by wakaba, Sun Apr 2 10:45:23 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                       Element$(DIS_SUFFIX) XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX)
42  DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis  DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX)
43    XP_DIS_FILES       = XMLParser$(DIS_SUFFIX)
44  DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML)  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
45    DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
46  _DIS_FILES = \    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
47    ManakaiDOMLS2003.dis \  DOT_CORE_DIS_FILES = \
48    DOMEvents.dis DOMViews.dis    $(DOM_FEATURE_DIS_FILES) \
49      $(DOM_CORE_DIS_FILES)
50  GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm \  
51    html.dac DOMHTML.pm DOMWebForms.pm  PM_FILES = \
52  BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm    DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
53      DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) \
54  all: $(GENERATED_FILES)    TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \
55      XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
56  core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \    DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
57    $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \    SimpleLS$(PM_SUFFIX) \
58    $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis    DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
59          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMLS.dis  
60    GENERATED_FILES = $(PM_FILES)
61  html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac  
62          $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis  all: .core$(PM_SUFFIX) $(PM_FILES)
63    
64  DOMMain.pm: core.dac $(DAC2PM_PL)  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
65          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" --output-file-path="$@"          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
66          $(PERL_CHK) $@          $(PERL_CHK) $@
67    
68  DOMCore.pm: core.dac $(DAC2PM_PL)  .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
69          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" --output-file-path="$@"          $(DAF) \
70          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
71              --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
72  DOMXML.pm: core.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
73          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" --output-file-path="$@"            --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
74          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)TreeCore   TreeCore$(PM_SUFFIX)" \
75              --create-perl-module="$(NS_MDOM)Document   Document$(PM_SUFFIX)" \
76  DOMLS.pm: core.dac $(DAC2PM_PL)            --create-perl-module="$(NS_MDOM)Element    Element$(PM_SUFFIX)" \
77          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMLS" --output-file-path="$@"            --create-perl-module="$(NS_MDOM)XML        XML$(PM_SUFFIX)" \
78          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)"
79            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
80  DOMHTML.pm: html.dac $(DAC2PM_PL)          $(PERL_CHK) GenericLS$(PM_SUFFIX)
81          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@          $(PERL_CHK) DOMMain$(PM_SUFFIX)
82          $(PERL_CHK) $@          $(PERL_CHK) DOMCore$(PM_SUFFIX)
83            $(PERL_CHK) TreeCore$(PM_SUFFIX)
84            $(PERL_CHK) Document$(PM_SUFFIX)
85            $(PERL_CHK) Element$(PM_SUFFIX)
86            $(PERL_CHK) XML$(PM_SUFFIX)
87            $(PERL_CHK) XDoctype$(PM_SUFFIX)
88            $(TOUCH) $@
89      ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
90    
91  DOMWebForms.pm: html.dac $(DAC2PM_PL)  clean:
92          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@          $(RMALL) $(GENERATED_FILES)
93          $(PERL_CHK) $@          $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
94            $(RMALL) .core$(PM_SUFFIX)
 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  
95    
96  DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)  clean-db:
97          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" --output-file-path="$@"          $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
         $(PERL_CHK) $@  
98    
99  # $(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  
         $(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  
100    
101  clean:  ## $Date$
102          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~  ## License: Public Domain.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.39

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24