/[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.12 by wakaba, Mon Feb 21 08:06:19 2005 UTC revision 1.13 by wakaba, Tue May 3 12:34:37 2005 UTC
# Line 1  Line 1 
 LS = ls  
 MAKE = make  
 RM = rm  
 SED = sed  
 XARGS = xargs  
   
1  MANAKAI_ROOT_DIR = ../../../  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/
 MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/  
4    
5  PERL = perl -I$(MANAKAI_LIB_DIR)  CD = cd
6  PERL_CHK = $(PERL) -c -w  MAKE = make
7    RM = rm
8    PERL = perl
9    PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR)
10    PERL_OPTIONS = $(PERL_OPTIONS3)
11    PERL_ = $(PERL) $(PERL_OPTIONS)
12    PERLC = $(PERL) -c -w
13    PERLC_OPTIONS3 = $(PERL_OPTIONS)
14    PERLC_OPTIONS = $(PERLC_OPTIONS3)
15    PERL_CHK = $(PERLC) $(PERLC_OPTIONS)
16    
17  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl  NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
18  DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR) \  NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
                 -I=$(MANAKAI_LIB_DIR)Message/Util/ \  
                 -I=$(MANAKAI_LIB_DIR)Message/Util/Error/  
 CDIS2PM_OPTIONS = --enable-assert  
                   ## TODO: Official release should remove this option.  
 CDIS2PM_PL = ../../../bin/cdis2pm.pl  
 CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)  
 DIS2POD_PL = ../../../bin/dis2pm.pl  
 DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only  
19    
20  IDL2DIS_PL = idl2dis.pl  DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
21  IDL2DIS = $(PERL) $(IDL2DIS_PL)  DAC = $(PERL_) $(DAC_PL) \
22          --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
23          --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
24          --output-file-name=
25    
26    DAC2PM_OPTIONS3 = --enable-assert
27    DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
28    DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
29    DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)
30    
31  DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \  CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac
32    UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac
33    
34    DIS_FILES = DOMMetaImpl.dis \
35      DOMMain.dis DOMCore.dis DOMXML.dis
36    
37    _DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
38    DOMLS.dis ManakaiDOMLS2003.dis \    DOMLS.dis ManakaiDOMLS2003.dis \
39    DOMEvents.dis DOMViews.dis \    DOMEvents.dis DOMViews.dis \
40    DOMHTML.dis DOMWebForms.dis \    DOMHTML.dis DOMWebForms.dis \
# Line 37  GENERATED_FILES_DOMLATEST = core.cdis ev Line 45  GENERATED_FILES_DOMLATEST = core.cdis ev
45    DOMEvents.pm DOMViews.pm \    DOMEvents.pm DOMViews.pm \
46    DOMHTML.pm DOMWebForms.pm \    DOMHTML.pm DOMWebForms.pm \
47    meta.cdis DOMMetaImpl.dis    meta.cdis DOMMetaImpl.dis
 GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST)  
48    
49  NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#  GENERATED_FILES = all.dac DOMMain.pm DOMCore.pm DOMXML.pm
50    BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm
51    
52  all: dom  all: $(GENERATED_FILES)
53    
54  dom: dom-latest  all.dac: $(DIS_FILES) $(DAC_PL)
55  dom-latest: $(GENERATED_FILES_DOMLATEST)          $(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMCore.dis
56    
57  meta.cdis: DOMBoot.dis DOMMetaImpl.dis $(DISC_PL)  DOMMain.pm: all.dac $(DAC2PM_PL)
58          $(DISC) DOMBoot.dis --output-file-name=.$@.1.tmp \          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@
59                              --for="$(NS_MANAKAIDOM)ManakaiDOM1"          $(PERL_CHK) $@
         $(DISC) DOMMetaImpl.dis --input-cdis-file-name=.$@.1.tmp \  
                             --output-file-name=$@  
         $(RM) .$@.1.tmp  
60    
61  core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL)  DOMCore.pm: all.dac $(DAC2PM_PL)
62          $(DISC) DOMCore.dis --output-file-name=$@          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@
63            $(PERL_CHK) $@
64    
65  ev.cdis: core.cdis DOMEvents.dis DOMViews.dis $(DISC_PL)  DOMXML.pm: all.dac $(DAC2PM_PL)
66          $(DISC) DOMEvents.dis --input-cdis-file-name=$< \          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@
67                              --output-file-name=.$@.1.tmp          $(PERL_CHK) $@
         $(DISC) DOMViews.dis --input-cdis-file-name=.$@.1.tmp \  
                             --output-file-name=$@  
         $(RM) .$@.1.tmp  
68    
69  ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL)  boot: $(BOOT_GENERATED_FILES)
         $(DISC) DOMLS.dis --input-cdis-file-name=$< \  
                             --output-file-name=.$@.1.tmp  
         $(DISC) ManakaiDOMLS2003.dis --input-cdis-file-name=.$@.1.tmp \  
                             --output-file-name=$@  
         $(RM) .$@.1.tmp  
70    
71  html.cdis: ls.cdis DOMHTML.dis DOMWebForms.dis $(DISC_PL)  boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE)
72          $(DISC) DOMHTML.dis --input-cdis-file-name=$< \          $(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis
                             --output-file-name=.$@.1.tmp  
         $(DISC) DOMWebForms.dis --input-cdis-file-name=.$@.1.tmp \  
                             --output-file-name=$@  
         $(RM) .$@.1.tmp  
73    
74  DOMMetaImpl.pm: meta.cdis $(CDIS2PM_PL)  DOMMetaImpl.pm: boot.dac $(DAC2PM_PL)
75          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" > $@
           --module-name=DOMMetaImpl > $@  
76          $(PERL_CHK) $@          $(PERL_CHK) $@
77    
78  DOMMain.pm: core.cdis $(CDIS2PM_PL)  # $(CORE_DAC_FILE)
79          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \  $(MANAKAI_LIB_DIR)manakai/all.dac: \
80            --module-name=DOMMain --nooutput-module-version > $@    $(MANAKAI_LIB_DIR)manakai/DISCore.dis \
81          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \    $(MANAKAI_LIB_DIR)manakai/DISRDF.dis \
82            --module-name=DOMMain >> $@    $(MANAKAI_LIB_DIR)manakai/DISLang.dis \
83          $(PERL_CHK) $@    $(MANAKAI_LIB_DIR)manakai/DISIDL.dis \
84      $(MANAKAI_LIB_DIR)manakai/DISPerl.dis \
85      $(MANAKAI_LIB_DIR)manakai/XML.dis
86            $(CD) $(MANAKAI_ROOT_DIR)manakai/ && \
87              $(MAKE) all.dac
88    
89  DOMCore.pm: core.cdis DOMMain.pm $(CDIS2PM_PL)  # $(UTIL_DAC_FILE)
90          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  $(MANAKAI_LIB_DIR)Message/Util/all.dac:
91            --module-name=DOMCore > $@          $(CD) $(MANAKAI_ROOT_DIR)Message/Util/ && \
92          $(PERL_CHK) $@            $(MAKE) all.dac
93    
94  DOMXML.pm: core.cdis $(CDIS2PM_PL)  clean:
95          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~
           --module-name=DOMXML > $@  
         $(PERL_CHK) $@  
96    
97  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)
98          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
# Line 128  DOMWebForms.pm: html.cdis $(CDIS2PM_PL) Line 123  DOMWebForms.pm: html.cdis $(CDIS2PM_PL)
123          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
124            --module-name=DOMWebForms > $@            --module-name=DOMWebForms > $@
125          $(PERL_CHK) $@          $(PERL_CHK) $@
           
 clean:  
         $(RM) $(GENERATED_FILES) .*.tmp  
126    

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24