/[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.9 by wakaba, Wed Dec 29 12:17:42 2004 UTC revision 1.43 by wakaba, Sat May 13 12:06:21 2006 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)  DIS_SUFFIX = .dis
6  PERL_CHK = $(PERL) -c -w  DAEM_SUFFIX = .dafm
7    DAFX_SUFFIX = .dafx
8    PM_SUFFIX = .pm
9    
10  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl  CD = cd
11  DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR)  MAKE = make
12  CDIS2PM_PL = ../../../bin/cdis2pm.pl  RM = rm
13  CDIS2PM = $(PERL) $(CDIS2PM_PL)  RMALL = $(RM) -fv
14  DIS2POD_PL = ../../../bin/dis2pm.pl  PERL = perl
15  DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only  PERL_OPTIONS =
16    PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
17  IDL2DIS_PL = idl2dis.pl  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
18  IDL2DIS = $(PERL) $(IDL2DIS_PL)  PERLC = $(PERL) -c -w
19    PERLC_OPTIONS =
20  DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
21    DOMLS.dis ManakaiDOMLS2003.dis \  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
22    DOMEvents.dis  TOUCH = touch
   
 GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis \  
   DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \  
   DOMEvents.pm  
 GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST)  
23    
24    NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
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    
27  all: dom  DIS_OPTIONS =
28    DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
29          --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
30          --dis-file-suffix="$(DIS_SUFFIX)" \
31          --daem-file-suffix="$(DAEM_SUFFIX)" \
32          --dafx-file-suffix="$(DAFX_SUFFIX)"
33    
34    DAF_OPTIONS =
35    DAF_PL = $(MANAKAI_BIN_DIR)daf.pl
36    DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)
37    
38    DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)
39    DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis \
40                         TreeCore$(DIS_SUFFIX) Document$(DIS_SUFFIX) \
41                         Element$(DIS_SUFFIX) CharacterData$(DIS_SUFFIX) \
42                         XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX)
43    DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \
44      TreeStore$(DIS_SUFFIX)
45    XP_DIS_FILES       = XMLParser$(DIS_SUFFIX)
46    DOM_MISC_DIS_FILES = Traversal$(DIS_SUFFIX) XDP$(DIS_SUFFIX)
47    DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
48    DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
49      $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES) \
50      $(DOM_MISC_DIS_FILES)
51    DOT_CORE_DIS_FILES = \
52      $(DOM_FEATURE_DIS_FILES) \
53      $(DOM_CORE_DIS_FILES)
54    
55    PM_FILES = \
56      DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
57      DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) \
58      TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \
59      CharacterData$(PM_SUFFIX) XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
60      DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
61      SimpleLS$(PM_SUFFIX) TreeStore$(PM_SUFFIX) \
62      Traversal$(PM_SUFFIX) \
63      XDP$(PM_SUFFIX) \
64      DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
65    
66  dom: dom-latest  GENERATED_FILES = $(PM_FILES)
 dom-latest: DOMMain.pm-chk DOMCore.pm-chk \  
         $(GENERATED_FILES_DOMLATEST)  
   
 core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL)  
         $(DISC) DOMCore.dis --output-file-name=$@  
   
 ev.cdis: core.cdis DOMEvents.dis $(DISC_PL)  
         $(DISC) DOMEvents.dis --input-cdis-file-name=$< \  
                             --output-file-name=$@  
   
 ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL)  
         $(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  
   
 DOMMain.pm: core.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \  
           --module-name=DOMMain > $@  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMMain >> $@  
   
 DOMMain.pm-chk: DOMMain.pm  
         $(PERL_CHK) $<  
   
 DOMCore.pm: core.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMCore > $@  
   
 DOMCore.pm-chk: DOMCore.pm  
         $(PERL_CHK) $<  
   
 DOMXML.pm: core.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMXML > $@  
         $(PERL_CHK) $@  
67    
68  DOMEvents.pm: ev.cdis $(CDIS2PM_PL)  all: .core$(PM_SUFFIX) $(PM_FILES)
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMEvents > $@  
         $(PERL_CHK) $@  
69    
70  DOMLS.pm: ls.cdis $(CDIS2PM_PL)  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
71          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
           --module-name=DOMLS > $@  
72          $(PERL_CHK) $@          $(PERL_CHK) $@
73    
74  ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)  .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
75          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAF) \
76            --module-name=ManakaiDOMLS2003 > $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
77          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
78                      --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
79              --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
80              --create-perl-module="$(NS_MDOM)TreeCore   TreeCore$(PM_SUFFIX)" \
81              --create-perl-module="$(NS_MDOM)Document   Document$(PM_SUFFIX)" \
82              --create-perl-module="$(NS_MDOM)Element    Element$(PM_SUFFIX)" \
83              --create-perl-module="$(NS_MDOM)CharacterData CharacterData$(PM_SUFFIX)" \
84              --create-perl-module="$(NS_MDOM)XML        XML$(PM_SUFFIX)" \
85              --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)"
86            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
87            $(PERL_CHK) GenericLS$(PM_SUFFIX)
88            $(PERL_CHK) DOMMain$(PM_SUFFIX)
89            $(PERL_CHK) DOMCore$(PM_SUFFIX)
90            $(PERL_CHK) TreeCore$(PM_SUFFIX)
91            $(PERL_CHK) Document$(PM_SUFFIX)
92            $(PERL_CHK) Element$(PM_SUFFIX)
93            $(PERL_CHK) CharacterData$(PM_SUFFIX)
94            $(PERL_CHK) XML$(PM_SUFFIX)
95            $(PERL_CHK) XDoctype$(PM_SUFFIX)
96            $(TOUCH) $@
97      ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
98    
99  clean:  clean:
100          $(RM) $(GENERATED_FILES) .*.tmp          $(RMALL) $(GENERATED_FILES)
101            $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
102            $(RMALL) .core$(PM_SUFFIX)
103    
104    clean-db:
105            $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
106    
107    distclean: clean clean-db
108    
109    ## $Date$
110    ## License: Public Domain.

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.43

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24