1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
|
5 |
wakaba |
1.9 |
DIS_SUFFIX = .dis |
6 |
wakaba |
1.11 |
DAEM_SUFFIX = .dafm |
7 |
|
|
DAFX_SUFFIX = .dafx |
8 |
wakaba |
1.7 |
PM_SUFFIX = .pm |
9 |
|
|
|
10 |
wakaba |
1.3 |
CD = cd |
11 |
|
|
MAKE = make |
12 |
wakaba |
1.1 |
RM = rm |
13 |
wakaba |
1.12 |
RMALL = $(RM) -fv |
14 |
wakaba |
1.3 |
PERL = perl |
15 |
wakaba |
1.10 |
PERL_OPTIONS = |
16 |
|
|
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
17 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
18 |
wakaba |
1.3 |
PERLC = $(PERL) -c -w |
19 |
wakaba |
1.10 |
PERLC_OPTIONS = |
20 |
|
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
21 |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
22 |
wakaba |
1.3 |
|
23 |
wakaba |
1.18 |
NS_ATOM = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup/Atom/ |
24 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
25 |
wakaba |
1.3 |
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
26 |
|
|
|
27 |
wakaba |
1.9 |
DIS_OPTIONS = |
28 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
29 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
30 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
31 |
wakaba |
1.11 |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
32 |
|
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
33 |
wakaba |
1.9 |
|
34 |
wakaba |
1.11 |
DAF_OPTIONS = |
35 |
|
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
36 |
|
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
37 |
wakaba |
1.1 |
|
38 |
wakaba |
1.15 |
DIS_FILES = \ |
39 |
|
|
SuikaWikiConfig21$(DIS_SUFFIX) \ |
40 |
wakaba |
1.16 |
Atom$(DIS_SUFFIX) \ |
41 |
wakaba |
1.17 |
SuikaWiki$(DIS_SUFFIX) \ |
42 |
|
|
H2H$(DIS_SUFFIX) |
43 |
wakaba |
1.15 |
ADDITIONAL_DIS_FILES = common$(DIS_SUFFIX) |
44 |
wakaba |
1.1 |
|
45 |
wakaba |
1.15 |
PM_FILES = $(DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)) |
46 |
wakaba |
1.1 |
|
47 |
wakaba |
1.11 |
GENERATED_FILES = $(PM_FILES) |
48 |
wakaba |
1.1 |
|
49 |
|
|
all: $(GENERATED_FILES) |
50 |
|
|
|
51 |
wakaba |
1.11 |
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
52 |
|
|
$(DAF) --create-perl-module="$(NS_MARKUP)$* $@" |
53 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
54 |
|
|
|
55 |
wakaba |
1.18 |
## temporary |
56 |
|
|
atom: $(DAF_PL) |
57 |
|
|
$(DAF) \ |
58 |
|
|
--load-module="$(NS_MARKUP)Atom" \ |
59 |
wakaba |
1.19 |
--create-dtd-modules="$(NS_ATOM)Atom . $(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
60 |
|
|
--create-dtd-driver="$(NS_ATOM)Atom10 . $(NS_MANAKAIDOM)ManakaiDOMLatest" |
61 |
wakaba |
1.18 |
|
62 |
wakaba |
1.1 |
clean: |
63 |
wakaba |
1.12 |
$(RMALL) $(GENERATED_FILES) .*.tmp *~ .*~ |
64 |
wakaba |
1.11 |
|
65 |
wakaba |
1.14 |
clean-db: |
66 |
wakaba |
1.12 |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
67 |
|
|
|
68 |
wakaba |
1.13 |
distclean: clean clean-db |
69 |
|
|
|
70 |
wakaba |
1.19 |
## $Date: 2006/05/19 11:02:11 $ |
71 |
wakaba |
1.11 |
## License: Public Domain. |