4 |
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
6 |
RM = rm |
RM = rm |
7 |
PERL = perl -I$(MANAKAI_LIB_DIR) |
PERL = perl |
8 |
PERL_CHK = $(PERL) -c -w |
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 |
|
|
14 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
15 |
DISC = $(PERL) $(DISC_PL) \ |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
16 |
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
17 |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
18 |
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
|
19 |
CDIS2PM_OPTIONS = --enable-assert |
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_OPTIONS = --enable-assert |
26 |
## TODO: Official release should remove this option. |
## TODO: Official release should remove this option. |
27 |
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
28 |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
29 |
|
|
30 |
DIS_FILES = ManakaiNode.dis |
DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis Error/DOMException.dis |
|
GENERATED_FILES = mnode.cdis ManakaiNode.pm |
|
31 |
|
|
32 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
GENERATED_FILES = all.dac ManakaiNode.pm DIS.pm PerlCode.pm \ |
33 |
|
Error/DOMException.pm |
34 |
|
|
35 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
36 |
|
|
37 |
mnode.cdis: ManakaiNode.dis $(DISC_PL) |
all.dac: $(DIS_FILES) $(DAC_PL) |
38 |
$(DISC) $< --output-file-name=$@ |
$(DAC)$@ DIS.dis |
39 |
|
|
40 |
|
ManakaiNode.pm: all.dac $(DAC2PM_PL) |
41 |
|
$(DAC2PM) $< \ |
42 |
|
--module-uri="$(NS_UTIL)ManakaiNode" > $@ |
43 |
|
$(PERL_CHK) $@ |
44 |
|
|
45 |
|
DIS.pm: all.dac $(DAC2PM_PL) |
46 |
|
$(DAC2PM) $< \ |
47 |
|
--module-uri="$(NS_UTIL)DIS" > $@ |
48 |
|
$(PERL_CHK) $@ |
49 |
|
|
50 |
|
PerlCode.pm: all.dac $(DAC2PM_PL) |
51 |
|
$(DAC2PM) $< \ |
52 |
|
--module-uri="$(NS_UTIL)PerlCode" > $@ |
53 |
|
$(PERL_CHK) $@ |
54 |
|
|
55 |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
Error/DOMException.pm: all.dac $(DAC2PM_PL) |
56 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \ |
$(DAC2PM) $< \ |
57 |
--module-name=ManakaiNode > $@ |
--module-uri="$(NS_UTIL_ERR)DOMException" > $@ |
58 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
59 |
|
|
60 |
clean: |
clean: |