tm 6.71
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 6.20 1995/08/11 09:31:28 morioka Exp morioka $
3 #
4
5 # Please specify emacs executables:
6 #       NEMACS  = for NEMACS (or NEpoch)
7 #       MULE1   = for Mule 1.* (based on Emacs 18.*)
8 #       ORIG19  = for Emacs 19.* (FSF original or XEmacs)
9 #       MULE2   = for MULE 2.* (based on Emacs 19.*)
10
11 NEMACS  = nemacs
12 MULE1   = mule1
13 ORIG19  = emacs19
14 MULE2   = mule2
15
16 # Please specify Emacs Lisp install directory:
17 # TMDIR18 = for Emacs 18.* (NEMACS, NEpoch or MULE 1)
18 # TMDIR19 = for Emacs 19.* (FSF original, XEmacs or MULE 2)
19
20 #TMDIR18 = /usr/local/lib/emacs/local.lisp/tm
21 #TMDIR19 = /usr/local/lib/mule/site-lisp
22
23 TMDIR18 = $(HOME)/lib/emacs18/lisp
24 TMDIR19 = $(HOME)/lib/emacs19/lisp
25
26 # Please specify GNUS type (`gnus3' or `gnus4') if you use Emacs 18.*
27 EMACS18_GNUS  = gnus3
28 # EMACS18_GNUS  = gnus4
29
30 # Please specify optional load-path
31 NEMACS_OPT = /usr/local/lib/nemacs/local.lisp
32 MULE1_OPT  = /usr/local/lib/mule/local.lisp
33 ORIG19_OPT =
34 MULE2_OPT =
35
36 bindir  = $(HOME)/bin
37
38 CC      = gcc
39 CFLAGS  = -O
40
41 RM      = /bin/rm -f
42 CP      = /bin/cp -p
43
44 UTILS   = ol2 decode-b
45 GOMI    = $(UTILS) *.elc loadpath
46
47 TM_FILES = tm/README.eng tm/rel-*.ol tm/Changes* \
48                 tm/Makefile tm/mk-tm \
49                 tm/make-lpath tm/inst-el tm/inst-elc \
50                 tm/tm-view.el tm/tiny-mime.el \
51                 tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el tm/tm-misc.el \
52                 tm/tm-ftp.el tm/tm-latex.el tm/tm-partial.el \
53                 tm/tm-rich.el tm/richtext.el tm/tinyrich.el \
54                 tm/tm-comp.el \
55                 tm/tm-setup.el tm/mime-setup.el \
56                 tm/signature.el tm/sc-setup.el tm/gnushook.el \
57                 tm/*.c tm/methods \
58                 tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex \
59                 tm/doc/*.texi
60
61 TM_MUA_FILES =  tm/tm-rmail.el tm/tm-vm.el \
62                 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
63                 tm/gnus/*.el \
64                 tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/code-jp.ol \
65                 tm/mh-e/*.el
66
67 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel
68
69 TL_FILES = tl/README.eng \
70                 tl/Makefile tl/Makefile.bc tl/loadpath \
71                 tl/*.el tl/doc/*.texi
72
73 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
74         
75 TARFILE = tm6.71.tar
76
77
78 lpath-nemacs:
79         ./make-lpath $(NEMACS_OPT)
80
81 nemacs: lpath-nemacs
82         cd ../tl; PWD=`pwd` make nemacs NEMACS=$(NEMACS)
83         cd ../mel; PWD=`pwd` make elc EMACS=$(NEMACS)
84         $(NEMACS) -batch -l mk-tm -f compile-tm
85         cd gnus; PWD=`pwd` make gnus3 EMACS=$(NEMACS)
86         cd mh-e; PWD=`pwd` \
87                 make nemacs NEMACS=$(NEMACS) NEMACS_MH_E=$(NEMACS_MH_E)
88
89 nemacs-vm: lpath-nemacs
90         make -f Makefile.bc tm-vm EMACS=$(NEMACS) EMACS_TYPE=nemacs
91
92 install-nemacs: nemacs install-mua-18
93         cd ../tl; PWD=`pwd` make install-nemacs NEMACS=$(NEMACS)
94         cd ../mel; PWD=`pwd` make install-18 EMACS=$(NEMACS)
95         $(NEMACS) -batch -l mk-tm -f install-tm $(TMDIR18)
96         cd gnus; PWD=`pwd` make install-18 EMACS=$(NEMACS) TMDIR18=$(TMDIR18)
97
98 lpath-mule1:
99         ./make-lpath $(MULE1_OPT)
100
101 mule1:  lpath-mule1
102         cd ../tl; PWD=`pwd` make mule1 MULE1=$(MULE1)
103         cd ../mel; PWD=`pwd` make elc EMACS=$(MULE1)
104         $(MULE1) -batch -l mk-tm -f compile-tm
105         cd gnus; PWD=`pwd` make gnus3 EMACS=$(MULE1)
106         cd mh-e; PWD=`pwd` \
107                 make mule1 MULE1=$(MULE1) NEMACS_MH_E=$(MULE1_MH_E)
108
109 mule1-vm: lpath-mule1
110         make -f Makefile.bc tm-vm EMACS=$(MULE1) EMACS_TYPE=mule
111
112 install-mule1:  mule1 install-mua-18
113         cd ../tl; PWD=`pwd` make install-mule1 MULE1=$(MULE1)
114         cd ../mel; PWD=`pwd` make install-18 EMACS=$(MULE1)
115         $(MULE1) -batch -l mk-tm -f install-tm $(TMDIR18)
116         cd gnus; PWD=`pwd` make install-18 EMACS=$(MULE1) TMDIR18=$(TMDIR18)
117
118 install-mua-18:
119         cd mh-e; PWD=`pwd` make install-18 TMDIR18=$(TMDIR18)
120         make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR18)
121
122
123 lpath-orig19:
124         ./make-lpath $(ORIG19_OPT)
125
126 orig19: lpath-orig19
127         cd ../tl; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
128         cd ../mel; PWD=`pwd` make elc EMACS=$(ORIG19)
129         $(ORIG19) -batch -l mk-tm -f compile-tm
130         cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
131 # If you use (ding) GNUS, please comment use following:
132 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
133         cd mh-e; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
134
135 orig19-vm: lpath-orig19
136         make -f Makefile.bc tm-vm EMACS=$(ORIG19) EMACS_TYPE=orig
137
138 install-orig19: orig19 install-mua-19
139         cd ../tl; PWD=`pwd` make install-orig19 ORIG19=$(ORIG19)
140         cd ../mel; PWD=`pwd` make install-19 EMACS=$(ORIG19)
141         $(ORIG19) -batch -l mk-tm -f install-tm $(TMDIR19)
142         cd gnus; PWD=`pwd` make install-19 EMACS=$(ORIG19) TMDIR19=$(TMDIR19)
143
144 lpath-mule2:
145         ./make-lpath $(MULE2_OPT)
146
147 mule2:  lpath-mule2
148         cd ../tl; PWD=`pwd` make mule2 MULE2=$(MULE2)
149         cd ../mel; PWD=`pwd` make elc EMACS=$(MULE2)
150         $(MULE2) -batch -l mk-tm -f compile-tm
151         cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
152 # If you use (ding) GNUS, please comment use following:
153 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
154         cd mh-e; PWD=`pwd` make mule2 MULE2=$(MULE2)
155
156 mule2-vm: lpath-mule2
157         make -f Makefile.bc tm-vm EMACS=$(MULE2) EMACS_TYPE=mule
158
159 install-mule2:  mule2 install-mua-19
160         cd ../tl; PWD=`pwd` make install-mule2 MULE2=$(MULE2)
161         cd ../mel; PWD=`pwd` make install-19 EMACS=$(MULE2)
162         $(MULE2) -batch -l mk-tm -f install-tm $(TMDIR19)
163         cd gnus; PWD=`pwd` make install-19 EMACS=$(MULE2) TMDIR19=$(TMDIR19)
164
165 install-mua-19:
166         cd mh-e; PWD=`pwd` make install-19 TMDIR19=$(TMDIR19)
167         make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR19)
168
169
170 all:    $(UTILS) $(DVI)
171
172 ol2:    ol2.c
173         $(CC) $(CFLAGS) ol2.c -o ol2
174
175 decode-b:       decode-b.c
176         $(CC) $(CFLAGS) decode-b.c -o decode-b
177
178
179 tex:    ol2
180         cd doc; make tex
181
182 dvi:    ol2
183         cd doc; make dvi
184
185 ps:     ol2
186         cd doc; make ps
187
188
189 install:        $(UTILS) methods
190         $(CP) $(UTILS) $(bindir)
191         $(CP) methods/* $(bindir)
192
193
194 clean:
195         -$(RM) $(GOMI)
196         -cd doc; make clean
197         -cd gnus; make clean
198         -cd mh-e; make clean
199         cd ../mel; PWD=`pwd` make clean
200
201
202 tar:
203         cd doc; make tex
204         cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)