|
MANAKAI_ROOT_DIR = ../../../ |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
|
|
|
|
DIS_SUFFIX = .dis |
|
|
DAEM_SUFFIX = .dafm |
|
|
DAFX_SUFFIX = .dafx |
|
|
PM_SUFFIX = .pm |
|
|
|
|
|
CD = cd |
|
|
MAKE = make |
|
1 |
RM = rm |
RM = rm |
2 |
RMALL = $(RM) -fv |
RMALL = $(RM) -fv |
|
PERL = perl |
|
|
PERL_OPTIONS = |
|
|
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
|
|
PERLC = $(PERL) -c -w |
|
|
PERLC_OPTIONS = |
|
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
|
|
TOUCH = touch |
|
|
|
|
|
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
|
|
|
|
|
DIS_OPTIONS = |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
|
|
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
|
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
|
|
|
|
|
DAF_OPTIONS = |
|
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
|
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
|
3 |
|
|
4 |
DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX) |
GENERATED_FILES = |
|
DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis \ |
|
|
DOMString$(DIS_SUFFIX) \ |
|
|
TreeCore$(DIS_SUFFIX) Document$(DIS_SUFFIX) \ |
|
|
Element$(DIS_SUFFIX) CharacterData$(DIS_SUFFIX) \ |
|
|
XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX) |
|
|
DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \ |
|
|
TreeStore$(DIS_SUFFIX) |
|
|
XP_DIS_FILES = XMLParser$(DIS_SUFFIX) |
|
|
DOM_MISC_DIS_FILES = Traversal$(DIS_SUFFIX) XDP$(DIS_SUFFIX) |
|
|
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
|
|
DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \ |
|
|
$(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES) \ |
|
|
$(DOM_MISC_DIS_FILES) |
|
|
DOT_CORE_DIS_FILES = \ |
|
|
$(DOM_FEATURE_DIS_FILES) \ |
|
|
$(DOM_CORE_DIS_FILES) \ |
|
|
TreeStore$(DIS_SUFFIX) |
|
5 |
|
|
6 |
PM_FILES = \ |
all: |
|
DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \ |
|
|
DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) DOMString$(PM_SUFFIX) \ |
|
|
TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \ |
|
|
CharacterData$(PM_SUFFIX) XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \ |
|
|
DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \ |
|
|
SimpleLS$(PM_SUFFIX) TreeStore$(PM_SUFFIX) \ |
|
|
Traversal$(PM_SUFFIX) \ |
|
|
XDP$(PM_SUFFIX) \ |
|
|
DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
|
|
|
|
|
GENERATED_FILES = $(PM_FILES) |
|
|
|
|
|
all: .core$(PM_SUFFIX) $(PM_FILES) |
|
|
|
|
|
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
|
|
$(DAF) --create-perl-module="$(NS_MDOM)$* $@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
.core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL) |
|
|
$(DAF) \ |
|
|
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)DOMString DOMString$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)TreeCore TreeCore$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)Document Document$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)Element Element$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)CharacterData CharacterData$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)XML XML$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)XDoctype XDoctype$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)TreeStore TreeStore$(PM_SUFFIX)" |
|
|
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
|
|
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
|
|
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
|
|
$(PERL_CHK) DOMString$(PM_SUFFIX) |
|
|
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
|
|
$(PERL_CHK) TreeCore$(PM_SUFFIX) |
|
|
$(PERL_CHK) Document$(PM_SUFFIX) |
|
|
$(PERL_CHK) Element$(PM_SUFFIX) |
|
|
$(PERL_CHK) CharacterData$(PM_SUFFIX) |
|
|
$(PERL_CHK) XML$(PM_SUFFIX) |
|
|
$(PERL_CHK) XDoctype$(PM_SUFFIX) |
|
|
$(PERL_CHK) TreeStore$(PM_SUFFIX) |
|
|
$(TOUCH) $@ |
|
|
## NOTE: When you modify this rule, update |../Util/Makefile|, too. |
|
7 |
|
|
8 |
clean: |
clean: |
9 |
$(RMALL) $(GENERATED_FILES) |
$(RMALL) $(GENERATED_FILES) .*.tmp *~ .*~ *.BAK .*.BAK |
|
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
|
|
$(RMALL) .core$(PM_SUFFIX) |
|
|
|
|
|
clean-db: |
|
|
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
|
10 |
|
|
11 |
distclean: clean clean-db |
distclean: clean |
12 |
|
|
13 |
## $Date$ |
## $Date$ |
14 |
## License: Public Domain. |
## License: Public Domain. |