/[suikacvs]/messaging/manakai/bin/Makefile
Suika

Diff of /messaging/manakai/bin/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by wakaba, Thu Jan 6 10:41:31 2005 UTC revision 1.4 by wakaba, Thu Oct 6 10:53:34 2005 UTC
# Line 1  Line 1 
   
1  MANAKAI_ROOT_DIR = ../  MANAKAI_ROOT_DIR = ../
2  BIN_DIR = $(MANAKAI_ROOT_DIR)bin/  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
3  LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
 LIB_DOM_DIR = $(LIB_DIR)Message/DOM/  
   
 DIS_DIR = $(LIB_DOM_DIR)  
 DIS_FILES = $(DIS_DIR)DOM*.dis  
4    
 PERL = perl -I$(LIB_DIR)  
 PERLC = $(PERL) -c -w  
5  RM = rm -fv  RM = rm -fv
6    
7  MKDOMMEMLIST_PL = $(BIN_DIR)mkdommemlist.pl  DIS_SUFFIX = .dis
8  MKDOMMEMLIST = $(PERL) $(MKDOMMEMLIST_PL)  DAC_SUFFIX = .dae
9    DAEM_SUFFIX = .daem
10    
11    PERL_OPTIONS =
12    PERL = perl
13    PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
14    PERLC = $(PERL) -c -w
15    PERLC_ = $(PERLC) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
16    
17    DIS_OPTIONS =
18    DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
19      --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
20      --dis-file-suffix="$(DIS_SUFFIX)" \
21      --daem-file-suffix="$(DAEM_SUFFIX)"
22    
23    MKDOMMEMLIST_OPTIONS =
24    MKDOMMEMLIST_PL = $(MANAKAI_BIN_DIR)mkdommemlist.pl
25    MKDOMMEMLIST = $(PERL_) $(MKDOMMEMLIST_PL) $(MKDOMMEMLIST_OPTIONS) \
26      $(DIS_OPTIONS_ALL)
27    
28  DOMMEMLIST = dommemlist.pl.tmp  DOMMEMLIST = dommemlist.pl.tmp
29  GENERATED_FILES = $(DOMMEMLIST)  GENERATED_FILES = $(DOMMEMLIST)
30    
31  DOM_CDIS = $(LIB_DOM_DIR)html.cdis  DOM_DAC = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX)
32    
33  all: $(GENERATED_FILES)  all: $(GENERATED_FILES)
34    
35  $(DOM_CDIS): $(DIS_FILES)  $(DOMMEMLIST): $(DOM_DAC) $(MKDOMMEMLIST_PL)
         cd $(LIB_DOM_DIR) && make $<  
   
 $(DOMMEMLIST): $(DOM_CDIS) $(MKDOMMEMLIST_PL)  
36          $(MKDOMMEMLIST) $< > $@          $(MKDOMMEMLIST) $< > $@
37          $(PERLC) $@          $(PERLC_) $@
38    
39  clean:  clean:
40          $(RM) $(GENERATED_FILES) *~ .*~ *.BAK .*.BAK          $(RM) $(GENERATED_FILES) *~ .*~ *.BAK .*.BAK

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24