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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.21 - (hide annotations) (download)
Sat Sep 17 15:03:02 2005 UTC (19 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.20: +16 -11 lines
Perl-related methods moved from DIS to DIS/Perl; DIS readProperties method implemented (still buggy)

1 wakaba 1.13 MANAKAI_ROOT_DIR = ../../../
2     MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
3     MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
4    
5 wakaba 1.21 DAC_SUFFIX = .dac
6     PM_SUFFIX = .pm
7    
8 wakaba 1.13 CD = cd
9 wakaba 1.1 MAKE = make
10 wakaba 1.3 RM = rm
11 wakaba 1.13 PERL = perl
12     PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR)
13     PERL_OPTIONS = $(PERL_OPTIONS3)
14     PERL_ = $(PERL) $(PERL_OPTIONS)
15     PERLC = $(PERL) -c -w
16     PERLC_OPTIONS3 = $(PERL_OPTIONS)
17     PERLC_OPTIONS = $(PERLC_OPTIONS3)
18     PERL_CHK = $(PERLC) $(PERLC_OPTIONS)
19 wakaba 1.1
20 wakaba 1.13 NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
21     NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
22 wakaba 1.7
23 wakaba 1.13 DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
24     DAC = $(PERL_) $(DAC_PL) \
25     --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
26     --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
27     --output-file-name=
28    
29     DAC2PM_OPTIONS3 = --enable-assert
30     DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
31     DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
32     DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS)
33 wakaba 1.1
34 wakaba 1.21 UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
35 wakaba 1.1
36 wakaba 1.20 DOM_CORE_DIS_FILES = DOMFeature.dis DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis
37     DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
38     DIS_FILES = $(DOM_CORE_DIS_FILES) $(DOM_HTML_DIS_FILES)
39 wakaba 1.14
40     _DIS_FILES = \
41 wakaba 1.16 ManakaiDOMLS2003.dis \
42 wakaba 1.14 DOMEvents.dis DOMViews.dis
43 wakaba 1.9
44 wakaba 1.20 GENERATED_FILES = \
45 wakaba 1.21 core$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) DOMMain$(PM_SUFFIX) \
46     DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \
47     html$(DAC_SUFFIX) DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
48 wakaba 1.7
49 wakaba 1.13 all: $(GENERATED_FILES)
50 wakaba 1.7
51 wakaba 1.21 core$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_CORE_DIS_FILES) $(DAC_PL)
52 wakaba 1.20 $(DAC)$@ --input-db-file-name="$<" DOMLS.dis
53 wakaba 1.14
54 wakaba 1.21 html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
55 wakaba 1.20 $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
56 wakaba 1.19
57 wakaba 1.21 $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)
58     $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
59     --output-file-path="$@"
60 wakaba 1.19 $(PERL_CHK) $@
61 wakaba 1.9
62 wakaba 1.21 $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
63     $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@
64 wakaba 1.13 $(PERL_CHK) $@
65 wakaba 1.12
66 wakaba 1.20 # $(UTIL_CORE_DAC_FILE)
67 wakaba 1.21 $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
68     $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
69 wakaba 1.7
70 wakaba 1.20 dummy:
71 wakaba 1.16
72 wakaba 1.20 clean:
73     $(RM) $(GENERATED_FILES) .*.tmp *~ .*~ *.BAK .*.BAK
74 wakaba 1.14

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24