tm 7.41.2.
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 7.14 1996/01/18 10:27:43 morioka Exp morioka $
3 #
4
5 include config.tm
6
7 BINS    = src/ol2 src/decode-b
8 UTILS   = $(BINS)
9 GOMI    = $(BINS) *.elc loadpath
10 FLAGS   = -batch -q -no-site-file -l mk-tm
11
12 TM_FILES = tm/README.en tm/ChangeLog \
13                 tm/config.tm tm/Makefile tm/mk-tm \
14                 tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el tm/tm-def.el \
15                 tm/tm-eword.el tm/tm-ew-d.el tm/tm-ew-e.el \
16                 tm/tm-view.el tm/tm-parse.el \
17                 tm/tm-rich.el tm/tm-image.el \
18                 tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
19                 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
20                 tm/tm-tar.el \
21                 tm/tm-bbdb.el \
22                 tm/tm-edit.el tm/signature.el \
23                 tm/tm-setup.el tm/mime-setup.el \
24                 tm/sc-setup.el \
25                 tm/methods/tm* \
26                 tm/src/*.c \
27                 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
28                 tm/doc/*.texi tm/old-logs/*.en tm/old-logs/*.ja
29
30 TM_MUA_FILES =  tm/tm-rmail.el tm/tm-vm.el tm/tm-mail.el \
31                 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
32                 tm/gnus/*.el tm/gnus/ChangeLog \
33                 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \
34                 tm/mh-e/*.el tm/mh-e/ChangeLog
35
36 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/ChangeLog
37
38 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi \
39                 tl/ChangeLog
40
41 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
42
43 TARFILE = tm7.41.2.tar.gz
44
45
46 18:
47         cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
48         cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
49         $(EMACS18) $(FLAGS) -f compile-tm
50         cd gnus; PWD=`pwd` $(MAKE) gnus3 EMACS=$(EMACS18)
51 # If you use GNUS 4.*, please use following comment:
52 #       cd gnus; PWD=`pwd` $(MAKE) gnus4 EMACS=$(EMACS18)
53         cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
54
55 install-18:     18
56         cd ../tl; PWD=`pwd` \
57                 $(MAKE) install-18 EMACS=$(EMACS18) TLDIR18=$(TLDIR18)
58         cd ../mel; PWD=`pwd` \
59                 $(MAKE) install-18 EMACS=$(EMACS18) MELDIR18=$(MELDIR18)
60         $(EMACS18) $(FLAGS) -f install-tm $(TMDIR18)
61         cd gnus; PWD=`pwd` \
62                 $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TM_GNUS_DIR18)
63         cd mh-e; PWD=`pwd` \
64                 $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TMH_DIR18)
65
66
67 xemacs:
68         cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
69         cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
70         $(XEMACS) $(FLAGS) -f compile-tm
71         cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(XEMACS)
72         cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(XEMACS)
73         cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(XEMACS)
74         cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
75
76 install-xemacs: xemacs
77         cd ../tl; PWD=`pwd` \
78                 $(MAKE) install-19 EMACS=$(XEMACS) TLDIR19=$(TLDIR19)
79         cd ../mel; PWD=`pwd` \
80                 $(MAKE) install-19 EMACS=$(XEMACS) MELDIR19=$(MELDIR19)
81         $(XEMACS) $(FLAGS) -f install-tm $(TMDIR19)
82         cd gnus; PWD=`pwd` \
83                 $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19)
84         cd mh-e; PWD=`pwd` \
85                 $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19)
86
87
88 19_29:
89         cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)
90         cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)
91         $(EMACS19_29) $(FLAGS) -f compile-tm
92         cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(EMACS19_29)
93 #       cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(EMACS19_29)
94         cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(EMACS19_29)
95         cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)      
96
97 install-19_29:  19_29
98         cd ../tl; PWD=`pwd` \
99                 $(MAKE) install-19 EMACS=$(EMACS19_29) TLDIR19=$(TLDIR19_29)
100         cd ../mel; PWD=`pwd` \
101                 $(MAKE) install-19 EMACS=$(EMACS19_29) MELDIR19=$(MELDIR19_29)
102         $(EMACS19_29) $(FLAGS) -f install-tm $(TMDIR19_29)
103         cd gnus; PWD=`pwd` \
104                 $(MAKE) install-19_29 EMACS=$(EMACS19_29) \
105                         TMDIR19_29=$(TM_GNUS_DIR19_29)
106         cd mh-e; PWD=`pwd` \
107                 $(MAKE) install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29)
108
109
110 all:    $(UTILS) $(DVI)
111
112 src/ol2:        src/ol2.c
113         $(CC) $(CFLAGS) src/ol2.c -o src/ol2
114
115 src/decode-b:   src/decode-b.c
116         $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
117
118
119 tex:    ol2
120         cd doc; $(MAKE) tex
121
122 dvi:    ol2
123         cd doc; $(MAKE) dvi
124
125 ps:     ol2
126         cd doc; $(MAKE) ps
127
128
129 install:        $(UTILS) methods
130         $(CP) $(UTILS) $(bindir)
131         $(CP) methods/tm* $(bindir)
132
133
134 clean:
135         -$(RM) $(GOMI)
136         -cd doc; $(MAKE) clean
137         -cd gnus; $(MAKE) clean
138         -cd mh-e; $(MAKE) clean
139         cd ../mel; PWD=`pwd` $(MAKE) clean
140
141
142 tar:
143         cd doc; $(MAKE) tex
144         cd ..; gtar cvzf $(TARFILE) $(FILES)