|
|
|
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 |