/[suikacvs]/messaging/manakai/lib/Message/Util/Makefile
Suika

Diff of /messaging/manakai/lib/Message/Util/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by wakaba, Tue May 3 12:34:38 2005 UTC revision 1.44 by wakaba, Sat Dec 2 12:46:25 2006 UTC
# Line 3  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin Line 3  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin
3  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
4  MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/  MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/
5    
6    DIS_SUFFIX = .dis
7    DAEM_SUFFIX = .dafm
8    DAFX_SUFFIX = .dafx
9    PM_SUFFIX = .pm
10    
11  CD = cd  CD = cd
12  MAKE = make  MAKE = make
13  RM = rm  RM = rm
14    RMALL = $(RM) -fv
15  PERL = perl  PERL = perl
16  PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR)  PERL_OPTIONS =
17  PERL_OPTIONS = $(PERL_OPTIONS3)  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
18  PERL_ = $(PERL) $(PERL_OPTIONS)  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
19  PERLC = $(PERL) -c -w  PERLC = $(PERL) -c -w
20  PERLC_OPTIONS3 = $(PERL_OPTIONS)  PERLC_OPTIONS =
21  PERLC_OPTIONS = $(PERLC_OPTIONS3)  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
22  PERL_CHK = $(PERLC) $(PERLC_OPTIONS)  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
23    TOUCH = touch
24    
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    NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
27    NS_MARKUP     = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\#
28  NS_DIS        = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#  NS_DIS        = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#
29  NS_UTIL       = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/  NS_UTIL       = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
30  NS_UTIL_ERR   = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/  NS_UTIL_ERR   = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/
31    NS_UTIL_DIS   = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#
32    NS_UTIL_MUF   = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Formatter/
33    
34  DAC_PL = $(MANAKAI_BIN_DIR)dac.pl  DIS_OPTIONS =
35  DAC = $(PERL_) $(DAC_PL) \  DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
36        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
37        --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \        --dis-file-suffix="$(DIS_SUFFIX)" \
38        --output-file-name=        --daem-file-suffix="$(DAEM_SUFFIX)" \
39          --dafx-file-suffix="$(DAFX_SUFFIX)"
40  DAC2PM_OPTIONS3 = --enable-assert  
41  DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)  DAF_OPTIONS =
42  DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl  DAF_PL = $(MANAKAI_BIN_DIR)daf.pl
43  DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)  DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)
44    
45  CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac  UTIL_CORE_DIS_FILES    = ManakaiNode.dis Error/DOMException.dis Error/Core.dis \
46      Formatter/Muf2003$(DIS_SUFFIX)
47  DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis Error/DOMException.dis  UTIL_TEST_DIS_FILES    = ManakaiNodeTest$(DIS_SUFFIX)
48    DIS_CORE_DIS_FILES_    = DIS$(DIS_SUFFIX)
49  GENERATED_FILES = all.dac ManakaiNode.pm DIS.pm PerlCode.pm \  DIS_CORE_DIS_FILES_DIS = DIS/Perl.dis DIS/Value.dis DIS/DNLite.dis \
50    Error/DOMException.pm    DIS/DPG$(DIS_SUFFIX)
51    DIS_CORE_DIS_FILES     = $(DIS_CORE_DIS_FILES_) $(DIS_CORE_DIS_FILES_DIS)
52    DIS_DOC_DIS_FILES      = DIS/DISDoc.dis
53    DIS_DUMP_DIS_FILES     = DIS/DISDump.dis
54    DIS_TEST_DIS_FILES     = DIS/Test$(DIS_SUFFIX)
55    PC_DIS_FILES           = PerlCode$(DIS_SUFFIX)
56    UTIL_DIS_COMMON_DIS_FILE = DIS/common$(DIS_SUFFIX)
57    DIS_FILES = $(UTIL_CORE_DIS_FILES) $(UTIL_TEST_DIS_FILES) \
58      $(DIS_CORE_DIS_FILES) \
59      $(DIS_DOC_DIS_FILES) $(DIS_DUMP_DIS_FILES) $(DIS_TEST_DIS_FILES) \
60      $(PC_DIS_FILES) $(UTIL_DIS_COMMON_DIS_FILE)
61    
62    NS_UTIL_PM_FILES = \
63      ManakaiNode$(PM_SUFFIX) ManakaiNodeTest$(PM_SUFFIX) \
64      PerlCode$(PM_SUFFIX) \
65      DIS$(PM_SUFFIX)
66    NS_UTIL_ERR_PM_FILES = \
67      Error/DOMException$(PM_SUFFIX)
68    NS_UTIL_DIS_PM_FILES = \
69      DIS/DNLite$(PM_SUFFIX) DIS/Value$(PM_SUFFIX) \
70      DIS/DPG$(PM_SUFFIX) \
71      DIS/Perl$(PM_SUFFIX) DIS/DISDoc$(PM_SUFFIX) DIS/DISDump$(PM_SUFFIX) \
72      DIS/Test$(PM_SUFFIX)
73    
74  all: $(GENERATED_FILES)  GENERATED_FILES = \
75      $(NS_UTIL_PM_FILES) $(NS_UTIL_ERR_PM_FILES) $(NS_UTIL_DIS_PM_FILES)
76    
77  all.dac: $(DIS_FILES) $(DAC_PL) \  all: PerlCode$(PM_SUFFIX) .discore$(PM_SUFFIX) $(GENERATED_FILES)
   $(MANAKAI_LIB_DIR)Message/Markup/SuikaWikiConfig21.dis \  
   $(MANAKAI_LIB_DIR)Message/DOM/DOMMetaImpl.dis \  
   $(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis $(CORE_DAC_FILE)  
         $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DIS.dis  
78    
79  ManakaiNode.pm: all.dac $(DAC2PM_PL)  $(NS_UTIL_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
80          $(DAC2PM) $< \          $(DAF) --create-perl-module="$(NS_UTIL)$* $@"
           --module-uri="$(NS_UTIL)ManakaiNode" > $@  
81          $(PERL_CHK) $@          $(PERL_CHK) $@
82    
83  DIS.pm: all.dac $(DAC2PM_PL)  $(NS_UTIL_ERR_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
84          $(DAC2PM) $< \          $(DAF) --create-perl-module="$(NS_UTIL_ERR)$(*:Error/%=%) $@"
           --module-uri="$(NS_UTIL)DIS" > $@  
85          $(PERL_CHK) $@          $(PERL_CHK) $@
86    
87  PerlCode.pm: all.dac $(DAC2PM_PL)  $(NS_UTIL_DIS_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
88          $(DAC2PM) $< \          $(DAF) --create-perl-module="$(NS_UTIL_DIS)$(*:DIS/%=%) $@"
           --module-uri="$(NS_UTIL)PerlCode" > $@  
89          $(PERL_CHK) $@          $(PERL_CHK) $@
90    
91  Error/DOMException.pm: all.dac $(DAC2PM_PL)  .discore$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL)
92          $(DAC2PM) $< \          $(DAF) \
93            --module-uri="$(NS_UTIL_ERR)DOMException" > $@            --create-perl-module="$(NS_UTIL)DIS        DIS$(PM_SUFFIX)" \
94          $(PERL_CHK) $@            --create-perl-module="$(NS_UTIL_DIS)Value  DIS/Value$(PM_SUFFIX)" \
95              --create-perl-module="$(NS_UTIL_DIS)Perl   DIS/Perl$(PM_SUFFIX)" \
96  # $(CORE_DAC_FILE)            --create-perl-module="$(NS_UTIL_DIS)DPG    DIS/DPG$(PM_SUFFIX)" \
97  $(MANAKAI_LIB_DIR)manakai/all.dac: \            --create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)"
98    $(MANAKAI_LIB_DIR)manakai/DISCore.dis \          $(PERL_CHK) DIS$(PM_SUFFIX)
99    $(MANAKAI_LIB_DIR)manakai/DISRDF.dis \          $(PERL_CHK) DIS/Value$(PM_SUFFIX)
100    $(MANAKAI_LIB_DIR)manakai/DISLang.dis \          $(PERL_CHK) DIS/Perl$(PM_SUFFIX)
101    $(MANAKAI_LIB_DIR)manakai/DISIDL.dis \          $(PERL_CHK) DIS/DNLite$(PM_SUFFIX)
102    $(MANAKAI_LIB_DIR)manakai/DISPerl.dis \          $(PERL_CHK) DIS/DPG$(PM_SUFFIX)
103    $(MANAKAI_LIB_DIR)manakai/XML.dis          $(TOUCH) $@
104          $(CD) $(MANAKAI_LIB_DIR)manakai/ && \  
105            $(MAKE) all.dac  .discore-all$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL)
106            $(DAF) \
107              --create-perl-module="$(NS_UTIL)ManakaiNode ManakaiNode$(PM_SUFFIX)" \
108              --create-perl-module="$(NS_UTIL_ERR)DOMException Error/DOMException$(PM_SUFFIX)" \
109              --create-perl-module="$(NS_MARKUP)SuikaWikiConfig21 ../Markup/SuikaWikiConfig21$(PM_SUFFIX)" \
110              --create-perl-module="$(NS_UTIL)DIS        DIS$(PM_SUFFIX)" \
111              --create-perl-module="$(NS_UTIL_DIS)Value  DIS/Value$(PM_SUFFIX)" \
112              --create-perl-module="$(NS_UTIL_DIS)Perl   DIS/Perl$(PM_SUFFIX)" \
113              --create-perl-module="$(NS_UTIL_DIS)DPG    DIS/DPG$(PM_SUFFIX)" \
114              --create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)"
115            $(PERL_CHK) ../Markup/SuikaWikiConfig21$(PM_SUFFIX)
116            $(PERL_CHK) DIS$(PM_SUFFIX)
117            $(PERL_CHK) DIS/Value$(PM_SUFFIX)
118            $(PERL_CHK) DIS/Perl$(PM_SUFFIX)
119            $(PERL_CHK) DIS/DPG$(PM_SUFFIX)
120            $(PERL_CHK) DIS/DNLite$(PM_SUFFIX)
121            $(TOUCH) .discore$(PM_SUFFIX)
122            $(DAF) \
123              --create-perl-module="$(NS_UTIL)PerlCode   PerlCode$(PM_SUFFIX)" \
124              --create-perl-module="$(NS_MDOM)DOMFeature ../DOM/DOMFeature$(PM_SUFFIX)" \
125              --create-perl-module="$(NS_MDOM)GenericLS  ../DOM/GenericLS$(PM_SUFFIX)" \
126              --create-perl-module="$(NS_MDOM)DOMMain    ../DOM/DOMMain$(PM_SUFFIX)" \
127              --create-perl-module="$(NS_MDOM)DOMString  ../DOM/DOMString$(PM_SUFFIX)" \
128              --create-perl-module="$(NS_MDOM)DOMCore    ../DOM/DOMCore$(PM_SUFFIX)" \
129              --create-perl-module="$(NS_MDOM)TreeCore   ../DOM/TreeCore$(PM_SUFFIX)" \
130              --create-perl-module="$(NS_MDOM)Document   ../DOM/Document$(PM_SUFFIX)" \
131              --create-perl-module="$(NS_MDOM)Element    ../DOM/Element$(PM_SUFFIX)" \
132              --create-perl-module="$(NS_MDOM)CharacterData ../DOM/CharacterData$(PM_SUFFIX)" \
133              --create-perl-module="$(NS_MDOM)XML        ../DOM/XML$(PM_SUFFIX)" \
134              --create-perl-module="$(NS_MDOM)XDoctype   ../DOM/XDoctype$(PM_SUFFIX)" \
135              --create-perl-module="$(NS_MDOM)TreeStore  ../DOM/TreeStore$(PM_SUFFIX)"
136            $(PERL_CHK) PerlCode$(PM_SUFFIX)
137            $(PERL_CHK) ../DOM/DOMFeature$(PM_SUFFIX)
138            $(PERL_CHK) ../DOM/GenericLS$(PM_SUFFIX)
139            $(PERL_CHK) ../DOM/DOMMain$(PM_SUFFIX)
140            $(PERL_CHK) ../DOM/DOMString$(PM_SUFFIX)
141            $(PERL_CHK) ../DOM/DOMCore$(PM_SUFFIX)
142            $(PERL_CHK) ../DOM/TreeCore$(PM_SUFFIX)
143            $(PERL_CHK) ../DOM/Document$(PM_SUFFIX)
144            $(PERL_CHK) ../DOM/Element$(PM_SUFFIX)
145            $(PERL_CHK) ../DOM/CharacterData$(PM_SUFFIX)
146            $(PERL_CHK) ../DOM/XML$(PM_SUFFIX)
147            $(PERL_CHK) ../DOM/XDoctype$(PM_SUFFIX)
148            $(PERL_CHK) ../DOM/TreeStore$(PM_SUFFIX)
149            $(TOUCH) $@
150            $(TOUCH) ../DOM/.core$(PM_SUFFIX)
151    
152  clean:  clean:
153          $(RM) $(GENERATED_FILES) .*.tmp          $(RMALL) $(GENERATED_FILES)
154            $(RMALL) .*.tmp *~ .*~ .discore$(PM_SUFFIX) .discore-all$(PM_SUFFIX)
155            $(RMALL) Error/*~ Error/.*~
156            $(RMALL) Formatter/*~ Formatter/.*~
157            $(RMALL) DIS/*~ DIS/.*~
158    
159    clean-db:
160            $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
161            $(RMALL) Error/*$(DAEM_SUFFIX) Error/*$(DAFX_SUFFIX)
162            $(RMALL) Formatter/*$(DAEM_SUFFIX) Formatter/*$(DAFX_SUFFIX)
163            $(RMALL) DIS/*$(DAEM_SUFFIX) DIS/*$(DAFX_SUFFIX)
164    
165    distclean: clean clean-db
166    
167    ## $Date$
168    ## License: Public Domain.

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.44

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24