/[suikacvs]/messaging/manakai/lib/Message/DOM/Makefile
Suika

Diff of /messaging/manakai/lib/Message/DOM/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by wakaba, Mon Nov 1 07:58:17 2004 UTC revision 1.7 by wakaba, Sun Dec 26 09:24:37 2004 UTC
# Line 4  RM = rm Line 4  RM = rm
4  SED = sed  SED = sed
5  XARGS = xargs  XARGS = xargs
6    
7  PERL = perl -I../../  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  PERL_CHK = $(PERL) -c -w  PERL_CHK = $(PERL) -c -w
14    
15  DIS2PM_PL = ../../../bin/dis2pm.pl  DISC_PL = $(MANAKAI_BIN_DIR)disc.pl
16  DIS2PM = $(PERL) $(DIS2PM_PL)  DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR)
17    CDIS2PM_PL = ../../../bin/cdis2pm.pl
18    CDIS2PM = $(PERL) $(CDIS2PM_PL)
19  DIS2POD_PL = ../../../bin/dis2pm.pl  DIS2POD_PL = ../../../bin/dis2pm.pl
20  DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only  DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only
21    
22  IDL2DIS_PL = idl2dis.pl  IDL2DIS_PL = idl2dis.pl
23  IDL2DIS = $(PERL) $(IDL2DIS_PL)  IDL2DIS = $(PERL) $(IDL2DIS_PL)
24    
25  all: dom-modules  DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
26      ManakaiDOMCore.dis
27    
28    MAIN_CDIS_FILE = mdom.cdis
29    GENERATED_FILES_DOMLATEST = DOMMain.pm DOMCore.pm
30    GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST)
31    
32    NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
33    
34    all: $(MAIN_CDIS_FILE) dom
35    
36    dom: dom-latest
37    dom-latest: $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) \
38            DOMMain.pm-chk DOMCore.pm-chk
39    
40    $(MAIN_CDIS_FILE): $(DIS_FILES) $(DISC_PL)
41            $(DISC) DOMMain.dis --output-file-name=$@
42    
43    DOMMain.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL)
44            $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \
45              --module-name=DOMMain > $@
46            $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
47              --module-name=DOMMain >> $@
48    
49  dom-modules: ManakaiDOMMain.pm DOMMain.pm DOMCore.pm ManakaiDOMCore.pm  DOMMain.pm-chk:
50          $(LS) *.dis | $(SED) s/\.dis/.pm/ | $(XARGS) $(MAKE)          $(PERL_CHK) DOMMain.pm
51    
52  %.pm: %.dis $(DIS2PM_PL)  DOMCore.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL)
53          $(DIS2PM) --output-pod=file --output-pod-file=$(@:.pm=.pod) $< > $@          $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
54          $(PERL_CHK) $@            --module-name=DOMCore > $@
55    
56  %.pod: %.dis $(DIS2POD_PL)  DOMCore.pm-chk:
57          $(DIS2POD) $< > $@          $(PERL_CHK) DOMCore.pm
58                    
59  clean:  clean:
60          $(LS) *.dis | $(SED) s/\.dis/.pm/ | $(XARGS) $(RM)          $(RM) $(GENERATED_FILES)
61    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24