8e784e5996fa88dfbb61e237f21ab564015bb668
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 6.12 1995/06/22 05:00:00 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 FILES   = tm/README.eng tm/rel-*.ol \
47         tm/Makefile tm/Makefile.bc tm/make-lpath tm/inst-el tm/inst-elc \
48         tm/*.el tm/*.c tm/methods \
49         tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex tm/doc/*.texi \
50         tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus tm/gnus/*.el \
51         tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/code-jp.ol tm/mh-e/*.el
52 #       tl/README.eng \
53 #       tl/Makefile tl/Makefile.bc tl/loadpath \
54 #       tl/*.el tl/doc/*.texi
55
56 TARFILE = tm6.58.tar
57
58
59 lpath-nemacs:
60         ./make-lpath $(NEMACS_OPT)
61
62 nemacs: lpath-nemacs
63         make -f Makefile.bc all EMACS=$(NEMACS) EMACS_TYPE=nemacs
64         cd gnus; PWD=`pwd` make gnus3 EMACS=$(NEMACS)
65         cd mh-e; PWD=`pwd` \
66                 make nemacs NEMACS=$(NEMACS) NEMACS_MH_E=$(NEMACS_MH_E)
67
68 nemacs-vm: lpath-nemacs
69         make -f Makefile.bc tm-vm EMACS=$(NEMACS) EMACS_TYPE=nemacs
70
71 install-nemacs: nemacs install-mua-18
72         make -f Makefile.bc install TMDIR=$(TMDIR18) EMACS_TYPE=nemacs
73         cd gnus; PWD=`pwd` make install-18 EMACS=$(NEMACS) TMDIR18=$(TMDIR18)
74
75 lpath-mule1:
76         ./make-lpath $(MULE1_OPT)
77
78 mule1:  lpath-mule1
79         make -f Makefile.bc all EMACS=$(MULE1) EMACS_TYPE=mule
80         cd gnus; PWD=`pwd` make gnus3 EMACS=$(MULE1)
81         cd mh-e; PWD=`pwd` \
82                 make mule1 MULE1=$(MULE1) NEMACS_MH_E=$(MULE1_MH_E)
83
84 mule1-vm: lpath-nemacs
85         make -f Makefile.bc tm-vm EMACS=$(MULE1) EMACS_TYPE=mule
86
87 install-mule1:  mule1 install-mua-18
88         make -f Makefile.bc install TMDIR=$(TMDIR18) EMACS_TYPE=mule
89         cd gnus; PWD=`pwd` make install-18 EMACS=$(MULE1) TMDIR18=$(TMDIR18)
90
91 install-mua-18:
92         cd mh-e; PWD=`pwd` make install-18 TMDIR18=$(TMDIR18)
93         make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR18)
94
95
96 lpath-orig19:
97         ./make-lpath $(ORIG19_OPT)
98
99 orig19: lpath-orig19
100         make -f Makefile.bc all EMACS=$(ORIG19) EMACS_TYPE=orig
101         cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
102 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
103         cd mh-e; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
104
105 orig19-vm: lpath-nemacs
106         make -f Makefile.bc tm-vm EMACS=$(ORIG19) EMACS_TYPE=orig
107
108 install-orig19: orig19 install-mua-19
109         make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=orig
110         cd gnus; PWD=`pwd` make install-19 EMACS=$(ORIG19) TMDIR19=$(TMDIR19)
111
112 lpath-mule2:
113         ./make-lpath $(MULE2_OPT)
114
115 mule2:  lpath-mule2
116         make -f Makefile.bc all EMACS=$(MULE2) EMACS_TYPE=mule
117         cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
118 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
119         cd mh-e; PWD=`pwd` make mule2 MULE2=$(MULE2)
120
121 mule2-vm: lpath-nemacs
122         make -f Makefile.bc tm-vm EMACS=$(MULE2) EMACS_TYPE=mule
123
124 install-mule2:  mule2 install-mua-19
125         make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=mule
126         cd gnus; PWD=`pwd` make install-19 EMACS=$(MULE2) TMDIR19=$(TMDIR19)
127
128 install-mua-19:
129         cd mh-e; PWD=`pwd` make install-19 TMDIR19=$(TMDIR19)
130         make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR19)
131
132
133 all:    $(UTILS) $(DVI)
134
135 ol2:    ol2.c
136         $(CC) $(CFLAGS) ol2.c -o ol2
137
138 decode-b:       decode-b.c
139         $(CC) $(CFLAGS) decode-b.c -o decode-b
140
141
142 tex:    ol2
143         cd doc; make tex
144
145 dvi:    ol2
146         cd doc; make dvi
147
148 ps:     ol2
149         cd doc; make ps
150
151
152 install:        $(UTILS) methods
153         $(CP) $(UTILS) $(bindir)
154         $(CP) methods/* $(bindir)
155
156
157 clean:
158         -$(RM) $(GOMI)
159         -cd doc; make clean
160         -cd gnus; make clean
161         -cd mh-e; make clean
162
163
164 tar:
165         cd doc; make tex
166         cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)