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