/[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.22 by wakaba, Thu Sep 22 14:25:47 2005 UTC revision 1.25 by wakaba, Fri Sep 30 13:06:15 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  DAC_SUFFIX = .dad  DIS_SUFFIX = .dis
6    DAC_SUFFIX = .dae
7    DAEM_SUFFIX = .daem
8  PM_SUFFIX = .pm  PM_SUFFIX = .pm
9    
10  CD = cd  CD = cd
# Line 21  TOUCH = touch Line 23  TOUCH = touch
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)
42    
43  UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)  UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
44    
45  DOM_CORE_DIS_FILES = DOMFeature.dis DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX)
46    DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
47                         DOMLS.dis GenericLS.dis
48    DOM_LS_DIS_FILES   = SimpleLS.dis
49  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
50  DIS_FILES = $(DOM_CORE_DIS_FILES) $(DOM_HTML_DIS_FILES)  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
51      $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES)
 _DIS_FILES = \  
   ManakaiDOMLS2003.dis \  
   DOMEvents.dis DOMViews.dis  
52    
53  GENERATED_FILES = \  GENERATED_FILES = \
54    core$(DAC_SUFFIX)  DOMFeature$(PM_SUFFIX) DOMMain$(PM_SUFFIX) \    feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) \
55      core$(DAC_SUFFIX)  DOMMain$(PM_SUFFIX) \
56                       DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \                       DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \
57                         GenericLS$(PM_SUFFIX) \
58      ls$(DAC_SUFFIX)    SimpleLS$(PM_SUFFIX) \
59    html$(DAC_SUFFIX)  DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)    html$(DAC_SUFFIX)  DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
60  GENERATED_DAC_FILES = core$(DAC_SUFFIX) html$(DAC_SUFFIX)  GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \
61      core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX)
62    
63  all: .core$(PM_SUFFIX) .html$(PM_SUFFIX) $(GENERATED_DAC_FILES)  all: .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) $(GENERATED_DAC_FILES)
64    
65  core$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_CORE_DIS_FILES) $(DAC_PL)  feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL)
66          $(DAC)$@ --input-db-file-name="$<" DOMLS.dis          $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis
67    
68    core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL)
69            $(DAC)$@.tmp.1 --input-db-file-name="$<" DOMLS.dis
70            $(DAC)$@ --input-db-file-name="$@.tmp.1" GenericLS.dis
71            $(RM) $@.tmp.1
72    
73    ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL)
74            $(DAC)$@ --input-db-file-name="$<" SimpleLS.dis
75    
76  html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)  html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
77          $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis          $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
# Line 67  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): Line 87  $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)):
87            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
88            --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
89            --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \            --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \
90            --create-perl-module="$(NS_MDOM)DOMLS      DOMLS$(PM_SUFFIX)"            --create-perl-module="$(NS_MDOM)DOMLS      DOMLS$(PM_SUFFIX)" \
91              --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)"
92          $(PERL_CHK) DOMFeature$(PM_SUFFIX)          $(PERL_CHK) DOMFeature$(PM_SUFFIX)
93          $(PERL_CHK) DOMMain$(PM_SUFFIX)          $(PERL_CHK) DOMMain$(PM_SUFFIX)
94          $(PERL_CHK) DOMCore$(PM_SUFFIX)          $(PERL_CHK) DOMCore$(PM_SUFFIX)
95          $(PERL_CHK) DOMXML$(PM_SUFFIX)          $(PERL_CHK) DOMXML$(PM_SUFFIX)
96          $(PERL_CHK) DOMLS$(PM_SUFFIX)          $(PERL_CHK) DOMLS$(PM_SUFFIX)
97            $(PERL_CHK) GenericLS$(PM_SUFFIX)
98            $(TOUCH) $@
99    
100    $(DOM_LS_DIS_FILES:.dis=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL)
101            $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
102              --output-file-path="$@"
103            $(PERL_CHK) $@
104    
105    .ls$(PM_SUFFIX): ls$(DAC_SUFFIX) $(DAC2PM_PL)
106            $(DAC2PM) $< \
107              --create-perl-module="$(NS_MDOM)SimpleLS SimpleLS$(PM_SUFFIX)"
108            $(PERL_CHK) SimpleLS$(PM_SUFFIX)
109          $(TOUCH) $@          $(TOUCH) $@
110    
111  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
# Line 87  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): Line 120  $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)):
120          $(PERL_CHK) DOMWebForms$(PM_SUFFIX)          $(PERL_CHK) DOMWebForms$(PM_SUFFIX)
121          $(TOUCH) $@          $(TOUCH) $@
122    
123    feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL)
124            $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \
125              --for="$(NS_MANAKAIDOM)ForSpecLatest"
126    
127  # $(UTIL_CORE_DAC_FILE)  # $(UTIL_CORE_DAC_FILE)
128  $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy  $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
129          $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)          $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
# Line 95  dummy: Line 132  dummy:
132    
133  clean:  clean:
134          $(RM) $(GENERATED_FILES)          $(RM) $(GENERATED_FILES)
135          $(RM) .*.tmp *~ .*~ *.BAK .*.BAK .core$(PM_SUFFIX) .html$(PM_SUFFIX)          $(RM) .*.tmp *~ .*~ *.BAK .*.BAK
136            $(RM) .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX)
137    
138  ## $Date$  ## $Date$
139  ## License: Public Domain.  ## License: Public Domain.

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.25

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24