1 |
|
POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \ |
2 |
|
--htmlroot "../../.." |
3 |
|
|
4 |
MANAKAI_ROOT_DIR = ../../../ |
MANAKAI_ROOT_DIR = ../../../ |
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
5 |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
|
6 |
|
|
7 |
CD = cd |
CD = cd |
8 |
MAKE = make |
MAKE = make |
9 |
RM = rm |
RM = rm |
10 |
|
RMALL = $(RM) -fv |
11 |
PERL = perl |
PERL = perl |
12 |
PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR) |
PERL_OPTIONS = |
13 |
PERL_OPTIONS = $(PERL_OPTIONS3) |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
14 |
PERL_ = $(PERL) $(PERL_OPTIONS) |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
15 |
PERLC = $(PERL) -c -w |
PERLC = $(PERL) -c -w |
16 |
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
PERLC_OPTIONS = |
17 |
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
18 |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
19 |
|
TOUCH = touch |
20 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
|
21 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
HTM_FILES = Error.html \ |
22 |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
Formatter/Base.html Formatter/Boolean.html Formatter/Text.html \ |
23 |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
HostPermit.html QName/Filter.html |
|
|
|
|
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 |
|
|
|
|
|
DIS_FILES = ManakaiNode.dis DIS.dis PerlCode.dis Error/DOMException.dis |
|
24 |
|
|
25 |
GENERATED_FILES = all.dac ManakaiNode.pm DIS.pm PerlCode.pm \ |
GENERATED_FILES = $(HTML_FILES) |
|
Error/DOMException.pm |
|
26 |
|
|
27 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
28 |
|
|
29 |
all.dac: $(DIS_FILES) $(DAC_PL) \ |
Error.html:: %.html: %.pod |
30 |
$(MANAKAI_LIB_DIR)Message/Markup/SuikaWikiConfig21.dis \ |
$(POD2HTML) $< > $@ |
31 |
$(MANAKAI_LIB_DIR)Message/DOM/DOMMetaImpl.dis \ |
|
32 |
$(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis $(CORE_DAC_FILE) |
%.html: %.pm |
33 |
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DIS.dis |
$(POD2HTML) $< > $@ |
|
|
|
|
ManakaiNode.pm: all.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)ManakaiNode" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DIS.pm: all.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)DIS" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
PerlCode.pm: all.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)PerlCode" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
Error/DOMException.pm: all.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_ERR)DOMException" > $@ |
|
|
$(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 |
|
34 |
|
|
35 |
clean: |
clean: |
36 |
$(RM) $(GENERATED_FILES) .*.tmp |
$(RMALL) $(GENERATED_FILES) |
37 |
|
$(RMALL) *.tmp .*.tmp *~ .*~ |
38 |
|
$(RMALL) Error/*~ Error/.*~ |
39 |
|
$(RMALL) Formatter/*~ Formatter/.*~ |
40 |
|
|
41 |
|
distclean: clean |
42 |
|
|
43 |
|
## $Date$ |
44 |
|
## License: Public Domain. |