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 |
8 |
|
MAKE = make |
9 |
RM = rm |
RM = rm |
10 |
PERL = perl -I$(MANAKAI_LIB_DIR) |
RMALL = $(RM) -fv |
11 |
PERL_CHK = $(PERL) -c -w |
PERL = perl |
12 |
|
PERL_OPTIONS = |
13 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
14 |
DISC = $(PERL) $(DISC_PL) \ |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
15 |
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
PERLC = $(PERL) -c -w |
16 |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
PERLC_OPTIONS = |
17 |
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
18 |
CDIS2PM_OPTIONS = --enable-assert |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
19 |
## TODO: Official release should remove this option. |
TOUCH = touch |
20 |
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
|
21 |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
HTML_FILES = Error.html \ |
22 |
|
Formatter/Base.html Formatter/Boolean.html Formatter/Text.html \ |
23 |
DIS_FILES = ManakaiNode.dis |
HostPermit.html QName/Filter.html |
|
GENERATED_FILES = mnode.cdis ManakaiNode.pm |
|
24 |
|
|
25 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
GENERATED_FILES = $(HTML_FILES) |
26 |
|
|
27 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
28 |
|
|
29 |
mnode.cdis: ManakaiNode.dis $(DISC_PL) |
Error.html:: %.html: %.pod |
30 |
$(DISC) $< --output-file-name=$@ |
$(POD2HTML) $< > $@ |
31 |
|
|
32 |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
%.html: %.pm |
33 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \ |
$(POD2HTML) $< > $@ |
|
--module-name=ManakaiNode > $@ |
|
|
$(PERL_CHK) $@ |
|
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. |