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 |
|
|
DIS_SUFFIX = .dis |
6 |
|
|
DAEM_SUFFIX = .dafm |
7 |
|
|
DAFX_SUFFIX = .dafx |
8 |
|
|
PM_SUFFIX = .pm |
9 |
|
|
|
10 |
|
|
CD = cd |
11 |
|
|
MAKE = make |
12 |
|
|
RM = rm |
13 |
|
|
RMALL = $(RM) -fv |
14 |
|
|
PERL = perl |
15 |
|
|
PERL_OPTIONS = |
16 |
|
|
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
17 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
18 |
|
|
PERLC = $(PERL) -c -w |
19 |
|
|
PERLC_OPTIONS = |
20 |
|
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
21 |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
22 |
|
|
TOUCH = touch |
23 |
|
|
|
24 |
|
|
NS_URI = http://suika.fam.cx/~wakaba/archive/2005/manakai/URI/ |
25 |
|
|
|
26 |
|
|
DIS_OPTIONS = |
27 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
28 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
29 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
30 |
|
|
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
31 |
|
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
32 |
|
|
|
33 |
|
|
DAF_OPTIONS = |
34 |
|
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
35 |
|
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
36 |
|
|
|
37 |
|
|
DIS_FILES = Generic$(DIS_SUFFIX) |
38 |
|
|
|
39 |
|
|
PM_FILES = Generic$(PM_SUFFIX) |
40 |
|
|
|
41 |
|
|
GENERATED_FILES = $(PM_FILES) |
42 |
|
|
|
43 |
|
|
all: $(PM_FILES) |
44 |
|
|
|
45 |
|
|
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
46 |
|
|
$(DAF) --create-perl-module="$(NS_URI)$* $@" |
47 |
|
|
$(PERL_CHK) $@ |
48 |
|
|
|
49 |
|
|
clean: |
50 |
|
|
$(RMALL) $(GENERATED_FILES) |
51 |
|
|
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
52 |
|
|
|
53 |
|
|
distclean: clean |
54 |
|
|
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
55 |
|
|
|
56 |
|
|
## $Date: 2006/02/26 14:32:39 $ |
57 |
|
|
## License: Public Domain. |