1 |
|
2 |
MANAKAI_ROOT_DIR = ../ |
3 |
BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
4 |
LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
5 |
LIB_DOM_DIR = $(LIB_DIR)Message/DOM/ |
6 |
|
7 |
DIS_DIR = $(LIB_DOM_DIR) |
8 |
DIS_FILES = $(DIS_DIR)DOM*.dis |
9 |
|
10 |
PERL = perl -I$(LIB_DIR) |
11 |
PERLC = $(PERL) -c -w |
12 |
RM = rm -fv |
13 |
|
14 |
MKDOMMEMLIST_PL = $(BIN_DIR)mkdommemlist.pl |
15 |
MKDOMMEMLIST = $(PERL) $(MKDOMMEMLIST_PL) |
16 |
|
17 |
DOMMEMLIST = dommemlist.pl.tmp |
18 |
GENERATED_FILES = $(DOMMEMLIST) |
19 |
|
20 |
DOM_CDIS = $(LIB_DOM_DIR)core.cdis |
21 |
|
22 |
all: $(GENERATED_FILES) |
23 |
|
24 |
$(DOM_CDIS): $(DIS_FILES) |
25 |
cd $(LIB_DOM_DIR) && make $< |
26 |
|
27 |
$(DOMMEMLIST): $(DOM_CDIS) $(MKDOMMEMLIST_PL) |
28 |
$(MKDOMMEMLIST) $< > $@ |
29 |
$(PERLC) $@ |
30 |
|
31 |
clean: |
32 |
$(RM) $(GENERATED_FILES) *~ .*~ *.BAK .*.BAK |