/[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.7 - (show annotations) (download)
Sun Dec 26 09:24:37 2004 UTC (19 years, 11 months ago) by wakaba
Branch: MAIN
Changes since 1.6: +41 -12 lines
Daily (or weekly?)

1 LS = ls
2 MAKE = make
3 RM = rm
4 SED = sed
5 XARGS = xargs
6
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 PERL_CHK = $(PERL) -c -w
14
15 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 DIS2POD_PL = ../../../bin/dis2pm.pl
20 DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only
21
22 IDL2DIS_PL = idl2dis.pl
23 IDL2DIS = $(PERL) $(IDL2DIS_PL)
24
25 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 DOMMain.pm-chk:
50 $(PERL_CHK) DOMMain.pm
51
52 DOMCore.pm: $(MAIN_CDIS_FILE) $(CDIS2PM_PL)
53 $(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \
54 --module-name=DOMCore > $@
55
56 DOMCore.pm-chk:
57 $(PERL_CHK) DOMCore.pm
58
59 clean:
60 $(RM) $(GENERATED_FILES)
61

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24