1 |
MANAKAI_ROOT_DIR = ../../../ |
POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \ |
2 |
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
--htmlroot "../.." |
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
|
|
|
|
DIS_SUFFIX = .dis |
|
|
DAEM_SUFFIX = .dafm |
|
|
DAFX_SUFFIX = .dafx |
|
|
PM_SUFFIX = .pm |
|
|
|
|
|
CD = cd |
|
|
MAKE = make |
|
3 |
RM = rm |
RM = rm |
4 |
RMALL = $(RM) -fv |
RMALL = $(RM) -fv |
5 |
PERL = perl |
|
6 |
PERL_OPTIONS = |
HTML_FILES = URIReference.html |
7 |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
|
8 |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
all: $(HTML_FILES) |
9 |
PERLC = $(PERL) -c -w |
|
10 |
PERLC_OPTIONS = |
%.html: %.pod |
11 |
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
$(POD2HTML) $< > $@ |
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
|
|
TOUCH = touch |
|
|
|
|
|
NS_URI = http://suika.fam.cx/~wakaba/archive/2005/manakai/URI/ |
|
|
|
|
|
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) |
|
|
|
|
|
DIS_FILES = Generic$(DIS_SUFFIX) |
|
|
|
|
|
PM_FILES = Generic$(PM_SUFFIX) |
|
|
|
|
|
GENERATED_FILES = $(PM_FILES) |
|
|
|
|
|
all: $(PM_FILES) |
|
|
|
|
|
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
|
|
$(DAF) --create-perl-module="$(NS_URI)$* $@" |
|
|
$(PERL_CHK) $@ |
|
12 |
|
|
13 |
clean: |
clean: |
|
$(RMALL) $(GENERATED_FILES) |
|
14 |
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
15 |
|
|
16 |
clean-db: |
distclean: clean |
17 |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
$(RMALL) $(HTML_FILES) |
|
|
|
|
distclean: clean clean-db |
|
18 |
|
|
19 |
## $Date$ |
## $Date$ |
20 |
## License: Public Domain. |
## License: Public Domain. |