1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
|
6 |
|
|
RM = rm |
7 |
wakaba |
1.6 |
PERL = perl |
8 |
|
|
PERL_OPTIONS = -I$(MANAKAI_LIB_DIR) |
9 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS) |
10 |
|
|
PERLC = $(PERL) -c -w |
11 |
|
|
PERLC_OPTIONS = $(PERL_OPTIONS) |
12 |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
13 |
wakaba |
1.1 |
|
14 |
wakaba |
1.5 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
15 |
|
|
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
16 |
|
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
17 |
wakaba |
1.6 |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
18 |
wakaba |
1.5 |
|
19 |
|
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
20 |
wakaba |
1.6 |
DAC = $(PERL_) $(DAC_PL) \ |
21 |
wakaba |
1.5 |
--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_OPTIONS = --enable-assert |
26 |
|
|
## TODO: Official release should remove this option. |
27 |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
28 |
wakaba |
1.6 |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
29 |
wakaba |
1.5 |
|
30 |
wakaba |
1.6 |
DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis Error/DOMException.dis |
31 |
|
|
|
32 |
|
|
GENERATED_FILES = all.dac ManakaiNode.pm DIS.pm PerlCode.pm \ |
33 |
|
|
Error/DOMException.pm |
34 |
wakaba |
1.1 |
|
35 |
wakaba |
1.5 |
all: $(GENERATED_FILES) |
36 |
|
|
|
37 |
|
|
all.dac: $(DIS_FILES) $(DAC_PL) |
38 |
|
|
$(DAC)$@ DIS.dis |
39 |
wakaba |
1.1 |
|
40 |
wakaba |
1.6 |
ManakaiNode.pm: all.dac $(DAC2PM_PL) |
41 |
wakaba |
1.5 |
$(DAC2PM) $< \ |
42 |
|
|
--module-uri="$(NS_UTIL)ManakaiNode" > $@ |
43 |
|
|
$(PERL_CHK) $@ |
44 |
wakaba |
1.6 |
|
45 |
|
|
DIS.pm: all.dac $(DAC2PM_PL) |
46 |
wakaba |
1.5 |
$(DAC2PM) $< \ |
47 |
|
|
--module-uri="$(NS_UTIL)DIS" > $@ |
48 |
|
|
$(PERL_CHK) $@ |
49 |
wakaba |
1.6 |
|
50 |
|
|
PerlCode.pm: all.dac $(DAC2PM_PL) |
51 |
wakaba |
1.5 |
$(DAC2PM) $< \ |
52 |
|
|
--module-uri="$(NS_UTIL)PerlCode" > $@ |
53 |
|
|
$(PERL_CHK) $@ |
54 |
wakaba |
1.1 |
|
55 |
wakaba |
1.6 |
Error/DOMException.pm: all.dac $(DAC2PM_PL) |
56 |
|
|
$(DAC2PM) $< \ |
57 |
|
|
--module-uri="$(NS_UTIL_ERR)DOMException" > $@ |
58 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
59 |
|
|
|
60 |
|
|
clean: |
61 |
|
|
$(RM) $(GENERATED_FILES) .*.tmp |