1 |
wakaba |
1.1 |
|
2 |
|
|
MANAKAI_ROOT_DIR = ../ |
3 |
|
|
BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
4 |
|
|
LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
5 |
wakaba |
1.2 |
LIB_DOM_DIR = $(LIB_DIR)Message/DOM/ |
6 |
wakaba |
1.1 |
|
7 |
wakaba |
1.2 |
DIS_DIR = $(LIB_DOM_DIR) |
8 |
wakaba |
1.1 |
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 |
wakaba |
1.3 |
DOM_CDIS = $(LIB_DOM_DIR)html.cdis |
21 |
wakaba |
1.2 |
|
22 |
wakaba |
1.1 |
all: $(GENERATED_FILES) |
23 |
|
|
|
24 |
wakaba |
1.2 |
$(DOM_CDIS): $(DIS_FILES) |
25 |
|
|
cd $(LIB_DOM_DIR) && make $< |
26 |
|
|
|
27 |
|
|
$(DOMMEMLIST): $(DOM_CDIS) $(MKDOMMEMLIST_PL) |
28 |
|
|
$(MKDOMMEMLIST) $< > $@ |
29 |
wakaba |
1.1 |
$(PERLC) $@ |
30 |
|
|
|
31 |
|
|
clean: |
32 |
|
|
$(RM) $(GENERATED_FILES) *~ .*~ *.BAK .*.BAK |