/[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.1 by wakaba, Fri Feb 18 12:14:19 2005 UTC revision 1.5 by wakaba, Thu Apr 28 15:22:59 2005 UTC
# Line 11  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl Line 11  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl
11  DISC = $(PERL) $(DISC_PL) \  DISC = $(PERL) $(DISC_PL) \
12                  -I=$(MANAKAI_LIB_MANAKAI_DIR) \                  -I=$(MANAKAI_LIB_MANAKAI_DIR) \
13                  -I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \                  -I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \
14                    -I=$(MANAKAI_LIB_DIR)Message/Markup/ \
15                  -I=$(MANAKAI_LIB_DIR)Message/DOM/                  -I=$(MANAKAI_LIB_DIR)Message/DOM/
16  CDIS2PM_OPTIONS = --enable-assert  CDIS2PM_OPTIONS = --enable-assert
17                    ## TODO: Official release should remove this option.                    ## TODO: Official release should remove this option.
18  CDIS2PM_PL = ../../../bin/cdis2pm.pl  CDIS2PM_PL = $(MANAKAI_BIN_DIR)cdis2pm.pl
19  CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)  CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)
20    
 DIS_FILES = ManakaiNode.dis  
 GENERATED_FILES = mnode.cdis ManakaiNode.pm  
   
21  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\#
22    NS_DIS        = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#
23    NS_UTIL       = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
24    
25    DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
26    DAC = $(PERL) $(DAC_PL) \
27          --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
28          --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
29          --output-file-name=
30    
31    DAC2PM_OPTIONS = --enable-assert
32                      ## TODO: Official release should remove this option.
33    DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
34    DAC2PM = $(PERL) $(DAC2PM_PL) $(DAC2PM_OPTIONS)
35    
36    DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis
37    GENERATED_FILES = mnode.cdis ManakaiNode.pm \
38                      dis.cdis DIS.pm \
39                      Error/err.cdis Error/DOMException.pm \
40                      pc.cdis PerlCode.pm \
41                      all.dac ManakaiNode.pm2 DIS.pm2 PerlCode.pm2
42    
43  all: $(GENERATED_FILES)  all: $(GENERATED_FILES)
44    
45    all.dac: $(DIS_FILES) $(DAC_PL)
46            $(DAC)$@ DIS.dis
47    ## NOTE: PerlCode and ManakaiNode is referenced by DIS.
48    
49    ManakaiNode.pm2: all.dac $(DAC2PM_PL)
50            $(DAC2PM) $< \
51              --module-uri="$(NS_UTIL)ManakaiNode" > $@
52            $(PERL_CHK) $@
53    DIS.pm2: all.dac $(DAC2PM_PL)
54            $(DAC2PM) $< \
55              --module-uri="$(NS_UTIL)DIS" > $@
56            $(PERL_CHK) $@
57    PerlCode.pm2: all.dac $(DAC2PM_PL)
58            $(DAC2PM) $< \
59              --module-uri="$(NS_UTIL)PerlCode" > $@
60            $(PERL_CHK) $@
61    
62  mnode.cdis: ManakaiNode.dis $(DISC_PL)  mnode.cdis: ManakaiNode.dis $(DISC_PL)
63          $(DISC) $< --output-file-name=$@          $(DISC) $< --output-file-name=$@
64    
65  ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL)  ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL)
66          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \          $(CDIS2PM) $< \
67            --module-name=ManakaiNode > $@            --module-name=ManakaiNode > $@
68          $(PERL_CHK) $@          $(PERL_CHK) $@
69    
70    dis.cdis: DIS.dis mnode.cdis $(DISC_PL)
71            $(DISC) $< --input-cdis-file-name=mnode.cdis --output-file-name=$@
72    
73    DIS.pm: dis.cdis $(CDIS2PM_PL)
74            $(CDIS2PM) $< --module-name=DIS > $@
75            $(PERL_CHK) $@
76    
77    Error/err.cdis: Error/DOMException.dis $(DISC_PL)
78            $(DISC) $< --output-file-name=$@
79    
80    Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL)
81            $(CDIS2PM) $< \
82              --module-name=DOMException > $@
83            $(PERL_CHK) $@
84    
85    pc.cdis: PerlCode.dis $(DISC_PL)
86            $(DISC) $< --output-file-name=$@
87    
88    PerlCode.pm: pc.cdis $(CDIS2PM_PL)
89            $(CDIS2PM) $< \
90              --module-name=PerlCode > $@
91            $(PERL_CHK) $@
92    
93  clean:  clean:
94          $(RM) $(GENERATED_FILES) .*.tmp          $(RM) $(GENERATED_FILES) .*.tmp

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24