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 |
|
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
24 |
|
|
|
25 |
wakaba |
1.9 |
DIS_OPTIONS = |
26 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
27 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
28 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
29 |
wakaba |
1.11 |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
30 |
|
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
31 |
wakaba |
1.9 |
|
32 |
wakaba |
1.11 |
DAF_OPTIONS = |
33 |
|
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
34 |
|
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
35 |
wakaba |
1.1 |
|
36 |
wakaba |
1.11 |
DIS_FILES = SuikaWikiConfig21.dis |
37 |
wakaba |
1.1 |
|
38 |
wakaba |
1.11 |
PM_FILES = SuikaWikiConfig21$(PM_SUFFIX) |
39 |
wakaba |
1.1 |
|
40 |
wakaba |
1.11 |
GENERATED_FILES = $(PM_FILES) |
41 |
wakaba |
1.1 |
|
42 |
|
|
all: $(GENERATED_FILES) |
43 |
|
|
|
44 |
wakaba |
1.11 |
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
45 |
|
|
$(DAF) --create-perl-module="$(NS_MARKUP)$* $@" |
46 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
47 |
|
|
|
48 |
|
|
clean: |
49 |
wakaba |
1.12 |
$(RMALL) $(GENERATED_FILES) .*.tmp *~ .*~ |
50 |
wakaba |
1.11 |
|
51 |
wakaba |
1.14 |
clean-db: |
52 |
wakaba |
1.12 |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
53 |
|
|
|
54 |
wakaba |
1.13 |
distclean: clean clean-db |
55 |
|
|
|
56 |
wakaba |
1.14 |
## $Date: 2006/03/31 16:44:25 $ |
57 |
wakaba |
1.11 |
## License: Public Domain. |