1 |
wakaba |
1.1 |
LS = ls |
2 |
|
|
MAKE = make |
3 |
wakaba |
1.3 |
RM = rm |
4 |
wakaba |
1.1 |
SED = sed |
5 |
|
|
XARGS = xargs |
6 |
|
|
|
7 |
wakaba |
1.7 |
MANAKAI_ROOT_DIR = ../../../ |
8 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
9 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
10 |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
11 |
|
|
|
12 |
|
|
PERL = perl -I$(MANAKAI_LIB_DIR) |
13 |
wakaba |
1.3 |
PERL_CHK = $(PERL) -c -w |
14 |
wakaba |
1.1 |
|
15 |
wakaba |
1.7 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
16 |
|
|
DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR) |
17 |
|
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
18 |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) |
19 |
wakaba |
1.6 |
DIS2POD_PL = ../../../bin/dis2pm.pl |
20 |
|
|
DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only |
21 |
wakaba |
1.1 |
|
22 |
wakaba |
1.2 |
IDL2DIS_PL = idl2dis.pl |
23 |
|
|
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
24 |
|
|
|
25 |
wakaba |
1.8 |
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis |
26 |
wakaba |
1.7 |
|
27 |
|
|
MAIN_CDIS_FILE = mdom.cdis |
28 |
|
|
GENERATED_FILES_DOMLATEST = DOMMain.pm DOMCore.pm |
29 |
|
|
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
30 |
|
|
|
31 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
32 |
|
|
|
33 |
|
|
all: $(MAIN_CDIS_FILE) dom |
34 |
|
|
|
35 |
|
|
dom: dom-latest |
36 |
|
|
dom-latest: $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) \ |
37 |
|
|
DOMMain.pm-chk DOMCore.pm-chk |
38 |
|
|
|
39 |
|
|
$(MAIN_CDIS_FILE): $(DIS_FILES) $(DISC_PL) |
40 |
|
|
$(DISC) DOMMain.dis --output-file-name=$@ |
41 |
|
|
|
42 |
|
|
DOMMain.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL) |
43 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
44 |
|
|
--module-name=DOMMain > $@ |
45 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
46 |
|
|
--module-name=DOMMain >> $@ |
47 |
wakaba |
1.1 |
|
48 |
wakaba |
1.7 |
DOMMain.pm-chk: |
49 |
|
|
$(PERL_CHK) DOMMain.pm |
50 |
wakaba |
1.1 |
|
51 |
wakaba |
1.7 |
DOMCore.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL) |
52 |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
53 |
|
|
--module-name=DOMCore > $@ |
54 |
wakaba |
1.6 |
|
55 |
wakaba |
1.7 |
DOMCore.pm-chk: |
56 |
|
|
$(PERL_CHK) DOMCore.pm |
57 |
wakaba |
1.2 |
|
58 |
wakaba |
1.3 |
clean: |
59 |
wakaba |
1.7 |
$(RM) $(GENERATED_FILES) |
60 |
wakaba |
1.2 |
|