1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
|
5 |
wakaba |
1.9 |
DIS_SUFFIX = .dis |
6 |
|
|
DAC_SUFFIX = .dae |
7 |
|
|
DAEM_SUFFIX = .daem |
8 |
wakaba |
1.7 |
PM_SUFFIX = .pm |
9 |
|
|
|
10 |
wakaba |
1.3 |
CD = cd |
11 |
|
|
MAKE = make |
12 |
wakaba |
1.1 |
RM = rm |
13 |
wakaba |
1.3 |
PERL = perl |
14 |
|
|
PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR) |
15 |
|
|
PERL_OPTIONS = $(PERL_OPTIONS3) |
16 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS) |
17 |
|
|
PERLC = $(PERL) -c -w |
18 |
|
|
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
19 |
|
|
PERLC_OPTIONS = $(PERL_OPTIONS3) |
20 |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
21 |
|
|
|
22 |
|
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
23 |
|
|
|
24 |
wakaba |
1.9 |
DIS_OPTIONS = |
25 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
26 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
27 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
28 |
|
|
--daem-file-suffix="$(DAEM_SUFFIX)" |
29 |
|
|
|
30 |
|
|
DAC_OPTIONS = |
31 |
wakaba |
1.3 |
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
32 |
wakaba |
1.9 |
DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \ |
33 |
wakaba |
1.3 |
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
34 |
|
|
--output-file-name= |
35 |
|
|
|
36 |
|
|
DAC2PM_OPTIONS3 = --enable-assert |
37 |
|
|
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
38 |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
39 |
wakaba |
1.9 |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL) |
40 |
wakaba |
1.1 |
|
41 |
wakaba |
1.7 |
DOM_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX) |
42 |
wakaba |
1.1 |
|
43 |
|
|
DIS_FILES = SuikaWikiConfig21.dis |
44 |
|
|
|
45 |
wakaba |
1.7 |
GENERATED_FILES = all$(DAC_SUFFIX) SuikaWikiConfig21$(PM_SUFFIX) |
46 |
wakaba |
1.1 |
|
47 |
|
|
all: $(GENERATED_FILES) |
48 |
|
|
|
49 |
wakaba |
1.7 |
all$(DAC_SUFFIX): $(DOM_CORE_DAC_FILE) $(DIS_FILES) $(DAC_PL) |
50 |
wakaba |
1.6 |
$(DAC)$@ --input-db-file-name="$<" SuikaWikiConfig21.dis |
51 |
wakaba |
1.1 |
|
52 |
wakaba |
1.7 |
SuikaWikiConfig21$(PM_SUFFIX): all$(DAC_SUFFIX) $(DAC2PM_PL) |
53 |
wakaba |
1.3 |
$(DAC2PM) $< \ |
54 |
wakaba |
1.4 |
--module-uri="$(NS_MARKUP)SuikaWikiConfig21" \ |
55 |
|
|
--output-file-path="$@" |
56 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
57 |
|
|
|
58 |
wakaba |
1.6 |
# $(DOM_CORE_DAC_FILE) |
59 |
wakaba |
1.7 |
$(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX): dummy |
60 |
|
|
$(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) core$(DAC_SUFFIX) |
61 |
wakaba |
1.6 |
|
62 |
|
|
dummy: |
63 |
wakaba |
1.3 |
|
64 |
wakaba |
1.1 |
clean: |
65 |
wakaba |
1.3 |
$(RM) $(GENERATED_FILES) .*.tmp *~ .*~ |