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

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.45

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24