1 |
LS = ls |
POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \ |
2 |
MAKE = make |
--htmlroot "../../.." |
3 |
RM = rm |
RM = rm |
4 |
SED = sed |
RMALL = $(RM) -fv |
|
XARGS = xargs |
|
5 |
|
|
6 |
MANAKAI_ROOT_DIR = ../../../ |
HTML_FILES = DOMImplementation.html |
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
|
7 |
|
|
8 |
PERL = perl -I$(MANAKAI_LIB_DIR) |
all: $(HTML_FILES) |
|
PERL_CHK = $(PERL) -c -w |
|
9 |
|
|
10 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
%.html: %.pod |
11 |
DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR) |
$(POD2HTML) $< > $@ |
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) |
|
|
DIS2POD_PL = ../../../bin/dis2pm.pl |
|
|
DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only |
|
12 |
|
|
|
IDL2DIS_PL = idl2dis.pl |
|
|
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
|
|
|
|
|
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis |
|
|
|
|
|
MAIN_CDIS_FILE = mdom.cdis |
|
|
GENERATED_FILES_DOMLATEST = DOMMain.pm DOMCore.pm |
|
|
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
|
|
|
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
|
|
|
|
|
all: $(MAIN_CDIS_FILE) dom |
|
|
|
|
|
dom: dom-latest |
|
|
dom-latest: $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) \ |
|
|
DOMMain.pm-chk DOMCore.pm-chk |
|
|
|
|
|
$(MAIN_CDIS_FILE): $(DIS_FILES) $(DISC_PL) |
|
|
$(DISC) DOMMain.dis --output-file-name=$@ |
|
|
|
|
|
DOMMain.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
|
|
--module-name=DOMMain > $@ |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMMain >> $@ |
|
|
|
|
|
DOMMain.pm-chk: |
|
|
$(PERL_CHK) DOMMain.pm |
|
|
|
|
|
DOMCore.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMCore > $@ |
|
|
|
|
|
DOMCore.pm-chk: |
|
|
$(PERL_CHK) DOMCore.pm |
|
|
|
|
13 |
clean: |
clean: |
14 |
$(RM) $(GENERATED_FILES) |
$(RMALL) *.tmp .*.tmp *~ .*~ *.BAK .*.BAK |
15 |
|
|
16 |
|
distclean: clean |
17 |
|
$(RMALL) $(HTML_FILES) |
18 |
|
|
19 |
|
## $Date$ |
20 |
|
## License: Public Domain. |