1 |
|
POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \ |
2 |
|
--htmlroot "../.." |
3 |
|
POD2HTML2 = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \ |
4 |
|
--htmlroot "../../.." |
5 |
|
|
6 |
MANAKAI_ROOT_DIR = ../../../ |
MANAKAI_ROOT_DIR = ../../../ |
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
7 |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
|
|
|
|
|
DAC_SUFFIX = .dad |
|
|
PM_SUFFIX = .pm |
|
8 |
|
|
9 |
CD = cd |
CD = cd |
10 |
MAKE = make |
MAKE = make |
11 |
RM = rm |
RM = rm |
12 |
|
RMALL = $(RM) -fv |
13 |
PERL = perl |
PERL = perl |
14 |
PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR) |
PERL_OPTIONS = |
15 |
PERL_OPTIONS = $(PERL_OPTIONS3) |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
16 |
PERL_ = $(PERL) $(PERL_OPTIONS) |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
17 |
PERLC = $(PERL) -c -w |
PERLC = $(PERL) -c -w |
18 |
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
PERLC_OPTIONS = |
19 |
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
20 |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
21 |
TOUCH = touch |
TOUCH = touch |
22 |
|
|
23 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
HTML_FILES = Error.html \ |
24 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
Formatter/Base.html Formatter/Boolean.html Formatter/Text.html \ |
25 |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
HostPermit.html QName/Filter.html |
26 |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
|
27 |
NS_UTIL_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
GENERATED_FILES = $(HTML_FILES) |
28 |
|
|
29 |
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
all: $(GENERATED_FILES) |
|
DAC = $(PERL_) $(DAC_PL) \ |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
|
|
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
|
|
--output-file-name= |
|
|
|
|
|
DAC2PM_OPTIONS3 = --enable-assert |
|
|
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
|
|
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
|
|
|
|
|
CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all$(DAC_SUFFIX) |
|
|
SWCFG_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Markup/all$(DAC_SUFFIX) |
|
|
|
|
|
UTIL_CORE_DIS_FILES = ManakaiNode.dis Error/DOMException.dis Error/Core.dis |
|
|
DIS_CORE_DIS_FILES_ = DIS.dis PerlCode.dis |
|
|
DIS_CORE_DIS_FILES_DIS = DIS/Perl.dis DIS/Value.dis DIS/DNLite.dis |
|
|
DIS_CORE_DIS_FILES = $(DIS_CORE_DIS_FILES_) $(DIS_CORE_DIS_FILES_DIS) |
|
|
DIS_DOC_DIS_FILES = DIS/DISDoc.dis DIS/DISDump.dis |
|
|
DIS_FILES = $(UTIL_CORE_DIS_FILES) $(DIS_CORE_DIS_FILES) \ |
|
|
$(DIS_DOC_DIS_FILES) |
|
|
|
|
|
GENERATED_FILES = \ |
|
|
core$(DAC_SUFFIX) ManakaiNode$(PM_SUFFIX) Error/DOMException$(PM_SUFFIX) \ |
|
|
discore$(DAC_SUFFIX) DIS$(PM_SUFFIX) PerlCode$(PM_SUFFIX) \ |
|
|
DIS/Perl$(PM_SUFFIX) DIS/Value$(PM_SUFFIX) \ |
|
|
DIS/DNLite$(PM_SUFFIX) \ |
|
|
disdoc$(DAC_SUFFIX) DIS/DISDoc$(PM_SUFFIX) DIS/DISDump$(PM_SUFFIX) |
|
|
GENERATED_DAC_FILES = core$(DAC_SUFFIX) discore$(DAC_SUFFIX) disdoc$(DAC_SUFFIX) |
|
|
|
|
|
all: .discore$(PM_SUFFIX) .disdoc$(PM_SUFFIX) $(GENERATED_DAC_FILES) |
|
|
|
|
|
core$(DAC_SUFFIX): $(CORE_DAC_FILE) $(UTIL_CORE_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@.1.tmp --input-db-file-name="$<" ManakaiNode.dis |
|
|
$(DAC)$@ --input-db-file-name="$@.1.tmp" Error/DOMException.dis |
|
|
$(RM) $@.1.tmp |
|
|
|
|
|
discore$(DAC_SUFFIX): $(SWCFG_DAC_FILE) $(DIS_CORE_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS/DNLite.dis |
|
|
|
|
|
disdoc$(DAC_SUFFIX): discore$(DAC_SUFFIX) $(DIS_DOC_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS/DISDump.dis |
|
|
|
|
|
ManakaiNode$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)ManakaiNode" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
Error/DOMException$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_ERR)DOMException" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
$(DIS_CORE_DIS_FILES_:.dis=$(PM_SUFFIX)): %$(PM_SUFFIX): discore$(DAC_SUFFIX) \ |
|
|
$(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)$*" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
$(DIS_CORE_DIS_FILES_DIS:.dis=$(PM_SUFFIX)): %$(PM_SUFFIX): \ |
|
|
discore$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)$(*:DIS/%=%)" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
.discore$(PM_SUFFIX): discore$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL)PerlCode PerlCode$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
|
|
$(PERL_CHK) DIS$(PM_SUFFIX) |
|
|
$(PERL_CHK) PerlCode$(PM_SUFFIX) |
|
|
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
|
|
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
|
|
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
|
|
$(TOUCH) $@ |
|
|
|
|
|
DIS/DISDoc$(PM_SUFFIX): disdoc$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)DISDoc" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DIS/DISDump$(PM_SUFFIX): disdoc$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)DISDump" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
.disdoc$(PM_SUFFIX): disdoc$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)DISDoc DIS/DISDoc$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)DISDump DIS/DISDump$(PM_SUFFIX)" |
|
|
$(PERL_CHK) DIS/DISDoc$(PM_SUFFIX) |
|
|
$(PERL_CHK) DIS/DISDump$(PM_SUFFIX) |
|
|
$(TOUCH) $@ |
|
|
|
|
|
# $(CORE_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)manakai/all$(DAC_SUFFIX): dummy |
|
|
$(CD) $(MANAKAI_LIB_DIR)manakai/ && $(MAKE) all$(DAC_SUFFIX) |
|
|
|
|
|
# $(SWCFG_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)Message/Markup/all$(DAC_SUFFIX): dummy |
|
|
$(CD) $(MANAKAI_LIB_DIR)Message/Markup/ && $(MAKE) all$(DAC_SUFFIX) |
|
30 |
|
|
31 |
dummy: |
Error.html:: %.html: %.pod |
32 |
|
$(POD2HTML) $< > $@ |
33 |
|
|
34 |
|
%.html: %.pm |
35 |
|
$(POD2HTML) $< > $@ |
36 |
|
|
37 |
|
Formatter/%.html: %.pm |
38 |
|
$(POD2HTML2) $< > $@ |
39 |
|
|
40 |
clean: |
clean: |
41 |
$(RM) $(GENERATED_FILES) .*.tmp .discore$(PM_SUFFIX) .disdoc$(PM_SUFFIX) |
$(RMALL) *.tmp .*.tmp *~ .*~ |
42 |
|
$(RMALL) Error/*~ Error/.*~ |
43 |
|
$(RMALL) Formatter/*~ Formatter/.*~ |
44 |
|
|
45 |
|
distclean: clean |
46 |
|
$(RMALL) $(GENERATED_FILES) |
47 |
|
|
48 |
|
## $Date$ |
49 |
|
## License: Public Domain. |