/[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.5 by wakaba, Thu Apr 28 15:22:59 2005 UTC revision 1.48 by wakaba, Sat Aug 25 07:02:11 2007 UTC
# Line 1  Line 1 
1    POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \
2      --htmlroot "../.."
3    POD2HTML2 = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \
4      --htmlroot "../../.."
5    
6  MANAKAI_ROOT_DIR = ../../../  MANAKAI_ROOT_DIR = ../../../
 MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/  
7  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
 MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/  
8    
9    CD = cd
10    MAKE = make
11  RM = rm  RM = rm
12  PERL = perl -I$(MANAKAI_LIB_DIR)  RMALL = $(RM) -fv
13  PERL_CHK = $(PERL) -c -w  PERL = perl
14    PERL_OPTIONS =
15    PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
16    PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
17    PERLC = $(PERL) -c -w
18    PERLC_OPTIONS =
19    PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
20    PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
21    TOUCH = touch
22    
23    HTML_FILES = Error.html \
24      Formatter/Base.html Formatter/Boolean.html Formatter/Text.html \
25      HostPermit.html QName/Filter.html
26    
27  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl  GENERATED_FILES = $(HTML_FILES)
 DISC = $(PERL) $(DISC_PL) \  
                 -I=$(MANAKAI_LIB_MANAKAI_DIR) \  
                 -I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \  
                 -I=$(MANAKAI_LIB_DIR)Message/Markup/ \  
                 -I=$(MANAKAI_LIB_DIR)Message/DOM/  
 CDIS2PM_OPTIONS = --enable-assert  
                   ## TODO: Official release should remove this option.  
 CDIS2PM_PL = $(MANAKAI_BIN_DIR)cdis2pm.pl  
 CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS)  
   
 NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#  
 NS_DIS        = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#  
 NS_UTIL       = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/  
   
 DAC_PL = $(MANAKAI_BIN_DIR)dac.pl  
 DAC = $(PERL) $(DAC_PL) \  
       --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \  
       --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \  
       --output-file-name=  
   
 DAC2PM_OPTIONS = --enable-assert  
                   ## TODO: Official release should remove this option.  
 DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl  
 DAC2PM = $(PERL) $(DAC2PM_PL) $(DAC2PM_OPTIONS)  
   
 DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis  
 GENERATED_FILES = mnode.cdis ManakaiNode.pm \  
                   dis.cdis DIS.pm \  
                   Error/err.cdis Error/DOMException.pm \  
                   pc.cdis PerlCode.pm \  
                   all.dac ManakaiNode.pm2 DIS.pm2 PerlCode.pm2  
28    
29  all: $(GENERATED_FILES)  all: $(GENERATED_FILES)
30    
31  all.dac: $(DIS_FILES) $(DAC_PL)  Error.html:: %.html: %.pod
32          $(DAC)$@ DIS.dis          $(POD2HTML) $< > $@    
33  ## NOTE: PerlCode and ManakaiNode is referenced by DIS.  
34    %.html: %.pm
35  ManakaiNode.pm2: all.dac $(DAC2PM_PL)          $(POD2HTML) $< > $@    
36          $(DAC2PM) $< \  
37            --module-uri="$(NS_UTIL)ManakaiNode" > $@  Formatter/%.html: %.pm
38          $(PERL_CHK) $@          $(POD2HTML2) $< > $@    
 DIS.pm2: all.dac $(DAC2PM_PL)  
         $(DAC2PM) $< \  
           --module-uri="$(NS_UTIL)DIS" > $@  
         $(PERL_CHK) $@  
 PerlCode.pm2: all.dac $(DAC2PM_PL)  
         $(DAC2PM) $< \  
           --module-uri="$(NS_UTIL)PerlCode" > $@  
         $(PERL_CHK) $@  
   
 mnode.cdis: ManakaiNode.dis $(DISC_PL)  
         $(DISC) $< --output-file-name=$@  
   
 ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< \  
           --module-name=ManakaiNode > $@  
         $(PERL_CHK) $@  
   
 dis.cdis: DIS.dis mnode.cdis $(DISC_PL)  
         $(DISC) $< --input-cdis-file-name=mnode.cdis --output-file-name=$@  
   
 DIS.pm: dis.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< --module-name=DIS > $@  
         $(PERL_CHK) $@  
   
 Error/err.cdis: Error/DOMException.dis $(DISC_PL)  
         $(DISC) $< --output-file-name=$@  
   
 Error/DOMException.pm: Error/err.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< \  
           --module-name=DOMException > $@  
         $(PERL_CHK) $@  
   
 pc.cdis: PerlCode.dis $(DISC_PL)  
         $(DISC) $< --output-file-name=$@  
   
 PerlCode.pm: pc.cdis $(CDIS2PM_PL)  
         $(CDIS2PM) $< \  
           --module-name=PerlCode > $@  
         $(PERL_CHK) $@  
39    
40  clean:  clean:
41          $(RM) $(GENERATED_FILES) .*.tmp          $(RMALL) $(GENERATED_FILES)
42            $(RMALL) *.tmp .*.tmp *~ .*~
43            $(RMALL) Error/*~ Error/.*~
44            $(RMALL) Formatter/*~ Formatter/.*~
45    
46    distclean: clean
47    
48    ## $Date$
49    ## License: Public Domain.

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24