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 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ |
15 |
|
|
CDIS2PM_OPTIONS = --enable-assert |
16 |
|
|
## TODO: Official release should remove this option. |
17 |
|
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
18 |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
19 |
|
|
|
20 |
|
|
DIS_FILES = SuikaWikiConfig21.dis |
21 |
|
|
GENERATED_FILES = swcfg.cdis SuikaWikiConfig21.pm |
22 |
|
|
|
23 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
24 |
|
|
NS_SWCFG21 = http://suika.fam.cx/~wakaba/archive/2005/swcfg21\# |
25 |
|
|
|
26 |
|
|
all: $(GENERATED_FILES) |
27 |
|
|
|
28 |
|
|
swcfg.cdis: SuikaWikiConfig21.dis $(DISC_PL) |
29 |
|
|
$(DISC) $< --output-file-name=$@ |
30 |
|
|
|
31 |
|
|
SuikaWikiConfig21.pm: swcfg.cdis $(CDIS2PM_PL) |
32 |
|
|
$(CDIS2PM) $< --for="$(NS_SWCFG21)ForLatest" \ |
33 |
|
|
--module-name=SuikaWikiConfig21 > $@ |
34 |
|
|
$(PERL_CHK) $@ |
35 |
|
|
|
36 |
|
|
clean: |
37 |
|
|
$(RM) $(GENERATED_FILES) .*.tmp |