/[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.11 by wakaba, Wed Jan 5 12:19:39 2005 UTC revision 1.34 by wakaba, Sun Feb 26 14:32:39 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_OPTIONS = --enable-assert  RM = rm
13                    ## TODO: Official release should remove this option.  RMALL = $(RM) -fv
14  CDIS2PM_PL = ../../../bin/cdis2pm.pl  PERL = perl
15  CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)  PERL_OPTIONS =
16  DIS2POD_PL = ../../../bin/dis2pm.pl  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
17  DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
18    PERLC = $(PERL) -c -w
19  IDL2DIS_PL = idl2dis.pl  PERLC_OPTIONS =
20  IDL2DIS = $(PERL) $(IDL2DIS_PL)  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
21    PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
22  DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \  TOUCH = touch
   DOMLS.dis ManakaiDOMLS2003.dis \  
   DOMEvents.dis DOMViews.dis \  
   DOMHTML.dis DOMWebForms.dis  
   
 GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \  
   DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \  
   DOMEvents.pm DOMViews.pm \  
   DOMHTML.pm DOMWebForms.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  dom: dom-latest        --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
30  dom-latest: $(GENERATED_FILES_DOMLATEST)        --dis-file-suffix="$(DIS_SUFFIX)" \
31          --daem-file-suffix="$(DAEM_SUFFIX)" \
32  core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL)        --dafx-file-suffix="$(DAFX_SUFFIX)"
33          $(DISC) DOMCore.dis --output-file-name=$@  
34    DAF_OPTIONS =
35  ev.cdis: core.cdis DOMEvents.dis DOMViews.dis $(DISC_PL)  DAF_PL = $(MANAKAI_BIN_DIR)daf.pl
36          $(DISC) DOMEvents.dis --input-cdis-file-name=$< \  DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)
37                              --output-file-name=.$@.1.tmp  
38          $(DISC) DOMViews.dis --input-cdis-file-name=.$@.1.tmp \  DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX)
39                              --output-file-name=$@  DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
40          $(RM) .$@.1.tmp                       Tree$(DIS_SUFFIX) \
41                         XDoctype$(DIS_SUFFIX)
42  ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL)  DOM_LS_DIS_FILES   = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \
43          $(DISC) DOMLS.dis --input-cdis-file-name=$< \    ManakaiDOMLS2003$(DIS_SUFFIX)
44                              --output-file-name=.$@.1.tmp  XP_DIS_FILES       = XMLParser$(DIS_SUFFIX)
45          $(DISC) ManakaiDOMLS2003.dis --input-cdis-file-name=.$@.1.tmp \  DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
46                              --output-file-name=$@  DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
47          $(RM) .$@.1.tmp    $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
48    DOT_CORE_DIS_FILES = \
49  html.cdis: ls.cdis DOMHTML.dis DOMWebForms.dis $(DISC_PL)    $(DOM_FEATURE_DIS_FILES) \
50          $(DISC) DOMHTML.dis --input-cdis-file-name=$< \    $(DOM_CORE_DIS_FILES)
51                              --output-file-name=.$@.1.tmp  
52          $(DISC) DOMWebForms.dis --input-cdis-file-name=.$@.1.tmp \  PM_FILES = \
53                              --output-file-name=$@    DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
54          $(RM) .$@.1.tmp    DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) Tree$(PM_SUFFIX) \
55      DOMXML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \
56  DOMMain.pm: core.cdis $(CDIS2PM_PL)    DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \
57          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \    SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
58            --module-name=DOMMain --nooutput-module-version > $@    DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
59          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
60            --module-name=DOMMain >> $@  GENERATED_FILES = $(PM_FILES)
61          $(PERL_CHK) $@  
62    all: .core$(PM_SUFFIX) $(PM_FILES)
63  DOMCore.pm: core.cdis DOMMain.pm $(CDIS2PM_PL)  
64          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)
65            --module-name=DOMCore > $@          $(DAF) --create-perl-module="$(NS_MDOM)$* $@"
66          $(PERL_CHK) $@          $(PERL_CHK) $@
67    
68  DOMXML.pm: core.cdis $(CDIS2PM_PL)  .core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL)
69          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \          $(DAF) \
70            --module-name=DOMXML > $@            --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
71          $(PERL_CHK) $@            --create-perl-module="$(NS_MDOM)GenericLS  GenericLS$(PM_SUFFIX)" \
72              --create-perl-module="$(NS_MDOM)DOMMain    DOMMain$(PM_SUFFIX)" \
73              --create-perl-module="$(NS_MDOM)DOMCore    DOMCore$(PM_SUFFIX)" \
74              --create-perl-module="$(NS_MDOM)Tree       Tree$(PM_SUFFIX)" \
75              --create-perl-module="$(NS_MDOM)DOMXML     DOMXML$(PM_SUFFIX)" \
76              --create-perl-module="$(NS_MDOM)XDoctype   XDoctype$(PM_SUFFIX)"
77            $(PERL_CHK) DOMFeature$(PM_SUFFIX)
78            $(PERL_CHK) GenericLS$(PM_SUFFIX)
79            $(PERL_CHK) DOMMain$(PM_SUFFIX)
80            $(PERL_CHK) DOMCore$(PM_SUFFIX)
81            $(PERL_CHK) Tree$(PM_SUFFIX)
82            $(PERL_CHK) DOMXML$(PM_SUFFIX)
83            $(PERL_CHK) XDoctype$(PM_SUFFIX)
84            $(TOUCH) $@
85      ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
86    
 DOMEvents.pm: ev.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMEvents > $@  
         $(PERL_CHK) $@  
   
 DOMViews.pm: ev.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMViews > $@  
         $(PERL_CHK) $@  
   
 DOMLS.pm: ls.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMLS > $@  
         $(PERL_CHK) $@  
   
 ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=ManakaiDOMLS2003 > $@  
         $(PERL_CHK) $@  
   
 DOMHTML.pm: html.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMHTML > $@  
         $(PERL_CHK) $@  
   
 DOMWebForms.pm: html.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \  
           --module-name=DOMWebForms > $@  
         $(PERL_CHK) $@  
           
87  clean:  clean:
88          $(RM) $(GENERATED_FILES) .*.tmp          $(RMALL) $(GENERATED_FILES)
89            $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
90            $(RMALL) .core$(PM_SUFFIX)
91    
92    distclean: clean
93            $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)
94    
95    ## $Date$
96    ## License: Public Domain.

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.34

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24