53994f356c5d3b94ffadfb24d2b6590239cc3aa0
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 6.25 1995/09/04 00:51:33 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 optional load-path
27 NEMACS_OPT = /usr/local/lib/nemacs/local.lisp
28 MULE1_OPT  = /usr/local/lib/mule/local.lisp
29 ORIG19_OPT =
30 MULE2_OPT =
31
32 bindir  = $(HOME)/bin
33
34 CC      = gcc
35 CFLAGS  = -O
36
37 RM      = /bin/rm -f
38 CP      = /bin/cp -p
39
40 UTILS   = ol2 decode-b
41 GOMI    = $(UTILS) *.elc loadpath
42
43 TM_FILES = tm/README.eng tm/rel-*.ol tm/Changes* \
44                 tm/Makefile tm/mk-tm \
45                 tm/tm-view.el tm/tiny-mime.el \
46                 tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el tm/tm-def.el \
47                 tm/tm-ftp.el tm/tm-latex.el tm/tm-partial.el \
48                 tm/tm-rich.el tm/richtext.el tm/tinyrich.el \
49                 tm/tm-comp.el \
50                 tm/tm-setup.el tm/mime-setup.el \
51                 tm/signature.el tm/sc-setup.el tm/gnushook.el \
52                 tm/*.c tm/methods/tm* \
53                 tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex \
54                 tm/doc/*.texi
55
56 TM_MUA_FILES =  tm/tm-rmail.el tm/tm-vm.el \
57                 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
58                 tm/gnus/*.el \
59                 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \
60                 tm/mh-e/*.el
61
62 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel
63
64 TL_FILES = tl/README.eng \
65                 tl/Makefile tl/Makefile.bc tl/loadpath \
66                 tl/*.el tl/doc/*.texi
67
68 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
69
70 TARFILE = tm6.78.tar
71
72
73 nemacs:
74         cd ../tl; PWD=`pwd` make nemacs NEMACS=$(NEMACS)
75         cd ../mel; PWD=`pwd` make elc EMACS=$(NEMACS)
76         $(NEMACS) -batch -l mk-tm -f compile-tm
77         cd gnus; PWD=`pwd` make gnus3 EMACS=$(NEMACS)
78         cd mh-e; PWD=`pwd` make elc EMACS=$(NEMACS)
79
80 install-nemacs: nemacs
81         cd ../tl; PWD=`pwd` make install-nemacs NEMACS=$(NEMACS)
82         cd ../mel; PWD=`pwd` make install-18 EMACS=$(NEMACS)
83         $(NEMACS) -batch -l mk-tm -f install-tm $(TMDIR18)
84         cd gnus; PWD=`pwd` make install-18 EMACS=$(NEMACS) TMDIR18=$(TMDIR18)
85         cd mh-e; PWD=`pwd` make install-18 EMACS=$(NEMACS) TMDIR18=$(TMDIR18)
86
87
88 mule1:
89         cd ../tl; PWD=`pwd` make mule1 MULE1=$(MULE1)
90         cd ../mel; PWD=`pwd` make elc EMACS=$(MULE1)
91         $(MULE1) -batch -l mk-tm -f compile-tm
92         cd gnus; PWD=`pwd` make gnus3 EMACS=$(MULE1)
93         cd mh-e; PWD=`pwd` make elc EMACS=$(MULE1)
94
95 install-mule1:  mule1
96         cd ../tl; PWD=`pwd` make install-mule1 MULE1=$(MULE1)
97         cd ../mel; PWD=`pwd` make install-18 EMACS=$(MULE1)
98         $(MULE1) -batch -l mk-tm -f install-tm $(TMDIR18)
99         cd gnus; PWD=`pwd` make install-18 EMACS=$(MULE1) TMDIR18=$(TMDIR18)
100         cd mh-e; PWD=`pwd` make install-18 EMACS=$(MULE1) TMDIR18=$(TMDIR18)
101
102
103 orig19:
104         cd ../tl; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
105         cd ../mel; PWD=`pwd` make elc EMACS=$(ORIG19)
106         $(ORIG19) -batch -l mk-tm -f compile-tm
107         cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
108 # If you use (ding) GNUS, please use following comment:
109 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
110 # If you use Gnus v5, please use following comment:
111 #       cd gnus; PWD=`pwd` make gnus5 EMACS=$(ORIG19)
112         cd mh-e; PWD=`pwd` make elc EMACS=$(ORIG19)
113
114 install-orig19: orig19
115         cd ../tl; PWD=`pwd` make install-orig19 ORIG19=$(ORIG19)
116         cd ../mel; PWD=`pwd` make install-19 EMACS=$(ORIG19)
117         $(ORIG19) -batch -l mk-tm -f install-tm $(TMDIR19)
118         cd gnus; PWD=`pwd` make install-19 EMACS=$(ORIG19) TMDIR19=$(TMDIR19)
119         cd mh-e; PWD=`pwd` make install-19 EMACS=$(ORIG19) TMDIR19=$(TMDIR19)
120
121
122 mule2:
123         cd ../tl; PWD=`pwd` make mule2 MULE2=$(MULE2)
124         cd ../mel; PWD=`pwd` make elc EMACS=$(MULE2)
125         $(MULE2) -batch -l mk-tm -f compile-tm
126         cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
127 # If you use (ding) GNUS, please use following comment:
128 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
129 # If you use Gnus v5, please use following comment:
130 #       cd gnus; PWD=`pwd` make gnus5 EMACS=$(MULE2)
131         cd mh-e; PWD=`pwd` make elc EMACS=$(MULE2)      
132
133 install-mule2:  mule2
134         cd ../tl; PWD=`pwd` make install-mule2 MULE2=$(MULE2)
135         cd ../mel; PWD=`pwd` make install-19 EMACS=$(MULE2)
136         $(MULE2) -batch -l mk-tm -f install-tm $(TMDIR19)
137         cd gnus; PWD=`pwd` make install-19 EMACS=$(MULE2) TMDIR19=$(TMDIR19)
138         cd mh-e; PWD=`pwd` make install-19 EMACS=$(MULE2) TMDIR19=$(TMDIR19)
139
140
141 all:    $(UTILS) $(DVI)
142
143 ol2:    ol2.c
144         $(CC) $(CFLAGS) ol2.c -o ol2
145
146 decode-b:       decode-b.c
147         $(CC) $(CFLAGS) decode-b.c -o decode-b
148
149
150 tex:    ol2
151         cd doc; make tex
152
153 dvi:    ol2
154         cd doc; make dvi
155
156 ps:     ol2
157         cd doc; make ps
158
159
160 install:        $(UTILS) methods
161         $(CP) $(UTILS) $(bindir)
162         $(CP) methods/* $(bindir)
163
164
165 clean:
166         -$(RM) $(GOMI)
167         -cd doc; make clean
168         -cd gnus; make clean
169         -cd mh-e; make clean
170         cd ../mel; PWD=`pwd` make clean
171
172
173 tar:
174         cd doc; make tex
175         cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)