1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
|
6 |
|
|
RM = rm |
7 |
|
|
PERL = perl -I$(MANAKAI_LIB_DIR) |
8 |
|
|
PERL_CHK = $(PERL) -c -w |
9 |
|
|
|
10 |
|
|
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
11 |
|
|
DISC = $(PERL) $(DISC_PL) \ |
12 |
|
|
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
13 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/Util/ \ |
14 |
wakaba |
1.2 |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
15 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
16 |
wakaba |
1.1 |
CDIS2PM_OPTIONS = --enable-assert |
17 |
|
|
## TODO: Official release should remove this option. |
18 |
|
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
19 |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
20 |
|
|
|
21 |
|
|
DIS_FILES = SuikaWikiConfig21.dis |
22 |
|
|
GENERATED_FILES = swcfg.cdis SuikaWikiConfig21.pm |
23 |
|
|
|
24 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
25 |
|
|
NS_SWCFG21 = http://suika.fam.cx/~wakaba/archive/2005/swcfg21\# |
26 |
|
|
|
27 |
|
|
all: $(GENERATED_FILES) |
28 |
|
|
|
29 |
|
|
swcfg.cdis: SuikaWikiConfig21.dis $(DISC_PL) |
30 |
|
|
$(DISC) $< --output-file-name=$@ |
31 |
|
|
|
32 |
|
|
SuikaWikiConfig21.pm: swcfg.cdis $(CDIS2PM_PL) |
33 |
|
|
$(CDIS2PM) $< --for="$(NS_SWCFG21)ForLatest" \ |
34 |
|
|
--module-name=SuikaWikiConfig21 > $@ |
35 |
|
|
$(PERL_CHK) $@ |
36 |
|
|
|
37 |
|
|
clean: |
38 |
|
|
$(RM) $(GENERATED_FILES) .*.tmp |