/[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.15 by wakaba, Sun May 8 14:18:01 2005 UTC revision 1.29 by wakaba, Sun Nov 20 09:49:28 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    DIS_SUFFIX = .dis
6    DAC_SUFFIX = .dae
7    DAEM_SUFFIX = .daem
8    PM_SUFFIX = .pm
9    
10  CD = cd  CD = cd
11  MAKE = make  MAKE = make
12  RM = rm  RM = rm
13  PERL = perl  PERL = perl
14  PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR)  PERL_OPTIONS =
15  PERL_OPTIONS = $(PERL_OPTIONS3)  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
16  PERL_ = $(PERL) $(PERL_OPTIONS)  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
17  PERLC = $(PERL) -c -w  PERLC = $(PERL) -c -w
18  PERLC_OPTIONS3 = $(PERL_OPTIONS)  PERLC_OPTIONS =
19  PERLC_OPTIONS = $(PERLC_OPTIONS3)  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
20  PERL_CHK = $(PERLC) $(PERLC_OPTIONS)  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
21    TOUCH = touch
22    
23  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.
24  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\#
25    
26  DAC_PL = $(MANAKAI_BIN_DIR)dac.pl  DIS_OPTIONS =
27  DAC = $(PERL_) $(DAC_PL) \  DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
28        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
29          --dis-file-suffix="$(DIS_SUFFIX)" \
30          --daem-file-suffix="$(DAEM_SUFFIX)"
31    
32    DAC_OPTIONS =
33    DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
34    DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \
35        --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \        --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
36        --output-file-name=        --output-file-name=
37    
38  DAC2PM_OPTIONS3 = --enable-assert  DAC2PM_OPTIONS3 = --enable-assert
39  DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)  DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
40  DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl  DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
41  DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)  DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL)
   
 CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac  
 UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac  
   
 DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis  
 DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis  
   
 DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML)  
   
 _DIS_FILES = \  
   DOMLS.dis ManakaiDOMLS2003.dis \  
   DOMEvents.dis DOMViews.dis  
42    
43  GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \  UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
   DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \  
   DOMEvents.pm DOMViews.pm \  
   DOMHTML.pm DOMWebForms.pm \  
   meta.cdis DOMMetaImpl.dis  
44    
45  GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX)
46    html.dac DOMHTML.pm DOMWebForms.pm  DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
47  BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm                       DOMLS.dis GenericLS.dis Tree$(DIS_SUFFIX)
48    DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) ManakaiDOMLS2003$(DIS_SUFFIX)
49  all: $(GENERATED_FILES)  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
50    DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
51  core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES)
52    $(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \  
53    $(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis  GENERATED_FILES = \
54          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis    feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) \
55      core$(DAC_SUFFIX)  DOMMain$(PM_SUFFIX) \
56  html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac                       DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \
57          $(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis                       GenericLS$(PM_SUFFIX) Tree$(PM_SUFFIX) \
58      ls$(DAC_SUFFIX)    SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
59  DOMMain.pm: core.dac $(DAC2PM_PL)    html$(DAC_SUFFIX)  DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
60          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@  GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \
61          $(PERL_CHK) $@    core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX)
62    
63  DOMCore.pm: core.dac $(DAC2PM_PL)  all: .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) $(GENERATED_DAC_FILES)
64          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@  
65          $(PERL_CHK) $@  feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL)
66            $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis
67  DOMXML.pm: core.dac $(DAC2PM_PL)  
68          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@  core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL)
69          $(PERL_CHK) $@          $(DAC)$@.tmp.1 --input-db-file-name="$<" DOMLS.dis
70            $(DAC)$@ --input-db-file-name="$@.tmp.1" GenericLS.dis
71  DOMHTML.pm: html.dac $(DAC2PM_PL)          $(RM) $@.tmp.1
72          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@  
73    ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL)
74            $(DAC)$@.tmp.1 --input-db-file-name="$<" SimpleLS.dis
75            $(DAC)$@ --input-db-file-name="$@.tmp.1" ManakaiDOMLS2003.dis
76            $(RM) $@.tmp.1
77    
78    html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
79            $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
80    
81    $(DOM_FEATURE_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): \
82      feature$(DAC_SUFFIX) $(DAC2PM_PL)
83            $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
84              --output-file-path="$@"
85          $(PERL_CHK) $@          $(PERL_CHK) $@
86    
87  DOMWebForms.pm: html.dac $(DAC2PM_PL)  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)
88          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
89              --output-file-path="$@"
90          $(PERL_CHK) $@          $(PERL_CHK) $@
91    
92  boot: $(BOOT_GENERATED_FILES)  .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)
93            $(DAC2PM) $< \
94  boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE)            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
95          $(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
96              --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
97              --create-perl-module="$(NS_MDOM)Tree       Tree$(PM_SUFFIX)" \
98              --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \
99              --create-perl-module="$(NS_MDOM)DOMLS      DOMLS$(PM_SUFFIX)" \
100              --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)"
101            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
102            $(PERL_CHK) DOMMain$(PM_SUFFIX)
103            $(PERL_CHK) DOMCore$(PM_SUFFIX)
104            $(PERL_CHK) Tree$(PM_SUFFIX)
105            $(PERL_CHK) DOMXML$(PM_SUFFIX)
106            $(PERL_CHK) DOMLS$(PM_SUFFIX)
107            $(PERL_CHK) GenericLS$(PM_SUFFIX)
108            $(TOUCH) $@
109    
110  DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)  $(DOM_LS_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL)
111          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" \          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
112            --output-file-path="$@"            --output-file-path="$@"
113          $(PERL_CHK) $@          $(PERL_CHK) $@
114    
115  # $(CORE_DAC_FILE)  .ls$(PM_SUFFIX): ls$(DAC_SUFFIX) $(DAC2PM_PL)
116  $(MANAKAI_LIB_DIR)manakai/all.dac: \          $(DAC2PM) $< \
117    $(MANAKAI_LIB_DIR)manakai/DISCore.dis \            --create-perl-module="$(NS_MDOM)SimpleLS SimpleLS$(PM_SUFFIX)" \
118    $(MANAKAI_LIB_DIR)manakai/DISRDF.dis \            --create-perl-module="$(NS_MDOM)ManakaiDOMLS2003 ManakaiDOMLS2003$(PM_SUFFIX)"
119    $(MANAKAI_LIB_DIR)manakai/DISLang.dis \          $(PERL_CHK) SimpleLS$(PM_SUFFIX)
120    $(MANAKAI_LIB_DIR)manakai/DISIDL.dis \          $(PERL_CHK) ManakaiDOMLS2003$(PM_SUFFIX)
121    $(MANAKAI_LIB_DIR)manakai/DISPerl.dis \          $(TOUCH) $@
122    $(MANAKAI_LIB_DIR)manakai/XML.dis \  
123    $(MANAKAI_LIB_DIR)manakai/DISMarkup.dis  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
124          $(CD) $(MANAKAI_LIB_DIR)manakai/ && \          $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@
125            $(MAKE) all.dac          $(PERL_CHK) $@
126    
127  # $(UTIL_DAC_FILE)  .html$(PM_SUFFIX): html$(DAC_SUFFIX) $(DAC2PM_PL)
128  $(MANAKAI_LIB_DIR)Message/Util/all.dac: \          $(DAC2PM) $< \
129    DOMMetaImpl.dis DOMBoot.dis            --create-perl-module="$(NS_MDOM)DOMHTML     DOMHTML$(PM_SUFFIX)" \
130          $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && \            --create-perl-module="$(NS_MDOM)DOMWebForms DOMWebForms$(PM_SUFFIX)"
131            $(MAKE) all.dac          $(PERL_CHK) DOMHTML$(PM_SUFFIX)
132            $(PERL_CHK) DOMWebForms$(PM_SUFFIX)
133  clean:          $(TOUCH) $@
134          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~  
135    feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL)
136  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)          $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \
137          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \            --for="$(NS_MANAKAIDOM)ForSpecLatest"
138            --module-name=DOMEvents > $@  
139          $(PERL_CHK) $@  # $(UTIL_CORE_DAC_FILE)
140    $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
141            $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
142    
143  DOMViews.pm: ev.cdis $(CDIS2PM_PL)  dummy:
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMViews > $@  
         $(PERL_CHK) $@  
144    
145  DOMLS.pm: ls.cdis $(CDIS2PM_PL)  clean:
146          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(RM) $(GENERATED_FILES)
147            --module-name=DOMLS > $@          $(RM) .*.tmp *~ .*~ *.BAK .*.BAK
148          $(PERL_CHK) $@          $(RM) .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX)
149    
150  ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)  ## $Date$
151          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  ## License: Public Domain.
           --module-name=ManakaiDOMLS2003 > $@  
         $(PERL_CHK) $@  

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.29

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24