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