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/ |
|
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 |
22 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
|
23 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
HTML_FILES = Error.html \ |
24 |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
Formatter/Base.html Formatter/Boolean.html Formatter/Text.html \ |
25 |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
HostPermit.html QName/Filter.html |
26 |
NS_UTIL_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
|
27 |
|
GENERATED_FILES = $(HTML_FILES) |
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
|
|
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 |
|
|
|
|
|
DOMLS_DIS_FILE3 = $(MANAKAI_LIB_DIR)Message/DOM/DOMLS.dis |
|
|
DOMLS_DIS_FILE = $(DOMLS_DIS_FILE3) |
|
|
|
|
|
DOMBOOT_DIS_FILE3 = $(DOMLS_DIS_FILE) |
|
|
## Dummy |
|
|
#$(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis |
|
|
DOMBOOT_DIS_FILE = $(DOMBOOT_DIS_FILE3) |
|
|
|
|
|
BOOT_DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis Error/DOMException.dis |
|
|
DIS_FILES = $(BOOT_DIS_FILES) DIS/DISDoc.dis |
|
|
|
|
|
BOOT_GENERATED_FILES = base.dac min.dac ManakaiNode.pm DIS.pm PerlCode.pm \ |
|
|
Error/DOMException.pm |
|
|
GENERATED_FILES = $(BOOT_GENERATED_FILES) all.dac DIS/DISDoc.pm |
|
28 |
|
|
29 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
30 |
|
|
31 |
boot: $(BOOT_GENERATED_FILES) |
Error.html:: %.html: %.pod |
32 |
|
$(POD2HTML) $< > $@ |
33 |
|
|
34 |
|
%.html: %.pm |
35 |
|
$(POD2HTML) $< > $@ |
36 |
|
|
37 |
all.dac: min.dac $(DIS_FILES) $(DAC_PL) \ |
Formatter/%.html: %.pm |
38 |
$(MANAKAI_LIB_DIR)manakai/NaturalLanguage.dis |
$(POD2HTML2) $< > $@ |
|
$(DAC)$@ --input-db-file-name="$<" DIS/DISDoc.dis |
|
|
|
|
|
min.dac: base.dac $(BOOT_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS.dis |
|
|
|
|
|
base.dac: $(DAC_PL) \ |
|
|
$(MANAKAI_LIB_DIR)Message/Markup/SuikaWikiConfig21.dis \ |
|
|
$(MANAKAI_LIB_DIR)Message/DOM/DOMMetaImpl.dis \ |
|
|
$(DOMBOOT_DIS_FILE) $(CORE_DAC_FILE) \ |
|
|
$(DOMLS_DIS_FILE) |
|
|
$(DAC)$@.1.tmp --input-db-file-name="$(CORE_DAC_FILE)" \ |
|
|
$(DOMBOOT_DIS_FILE) \ |
|
|
--for="$(NS_MANAKAIDOM)ManakaiDOMLatest" |
|
|
$(DAC)$@.2.tmp --input-db-file-name="$@.1.tmp" $(DOMLS_DIS_FILE) \ |
|
|
--for="$(NS_MANAKAIDOM)ManakaiDOMLatest" |
|
|
$(DAC)$@ --input-db-file-name="$@.2.tmp" $(DOMLS_DIS_FILE) \ |
|
|
--for="$(NS_MANAKAIDOM)ManakaiDOM3" |
|
|
$(RM) $@.1.tmp $@.2.tmp |
|
|
|
|
|
ManakaiNode.pm: min.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)ManakaiNode" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DIS.pm: min.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)DIS" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
PerlCode.pm: min.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)PerlCode" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
Error/DOMException.pm: min.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_ERR)DOMException" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DIS/DISDoc.pm: all.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)DISDoc" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
# $(CORE_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)manakai/all.dac: \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/XML.dis |
|
|
$(CD) $(MANAKAI_LIB_DIR)manakai/ && \ |
|
|
$(MAKE) all.dac |
|
39 |
|
|
40 |
clean: |
clean: |
41 |
$(RM) $(GENERATED_FILES) .*.tmp |
$(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. |