tm 6.18
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 6.0 1995/04/20 13:08:16 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         TLSRCDIR = ../tl
27
28 # Please specify GNUS type (`gnus3' or `gnus4') if you use Emacs 18.*
29         EMACS18_GNUS  = gnus3
30 #       EMACS18_GNUS  = gnus4
31
32 bindir  = $(HOME)/bin
33 CC      = gcc
34 CFLAGS  = -O
35
36 UTILS   = ol2 decode-b
37 GOMI    = $(UTILS) *.elc
38 FILES   = tm/README.eng tm/rel-*.ol tm/Makefile tm/Makefile.bc \
39         tm/*.el tm/*.c tm/methods \
40         tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex tm/doc/*.texi \
41         tm/gnus/Makefile tm/gnus/Makefile.bc tm/gnus/*.el \
42         tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/*.el \
43         tl/README.eng tl/Makefile tl/Makefile.bc tl/*.el tl/doc/*.texi
44
45 TARFILE = tm6.18.tar
46
47
48 nemacs:
49         make -f Makefile.bc all \
50                 OPT='-l $(TLSRCDIR)/tl-18.el' \
51                 EMACS=$(NEMACS) EMACS_TYPE=nemacs TLSRCDIR=$(TLSRCDIR)
52         (cd gnus; make nemacs NEMACS=$(NEMACS) EMACS18_GNUS=$(EMACS18_GNUS))
53         (cd mh-e; make nemacs NEMACS=$(NEMACS))
54         
55 install-nemacs: nemacs install-mua-18
56         make -f Makefile.bc install TMDIR=$(TMDIR18) EMACS_TYPE=nemacs
57
58
59 mule1:
60         make -f Makefile.bc all \
61                 OPT='-l $(TLSRCDIR)/tl-18.el' \
62                 EMACS=$(MULE1) EMACS_TYPE=mule TLSRCDIR=$(TLSRCDIR)
63         (cd gnus; make mule1 MULE1=$(MULE1) EMACS18_GNUS=$(EMACS18_GNUS))
64         (cd mh-e; make mule1 MULE1=$(MULE1))
65
66 install-mule1:  mule1 install-mua-18
67         make -f Makefile.bc install TMDIR=$(TMDIR18) EMACS_TYPE=mule
68
69 install-mua-18:
70         (cd gnus; make install-18 TMDIR18=$(TMDIR18))
71         (cd mh-e; make install-18 TMDIR18=$(TMDIR18))
72
73
74 orig19:
75         make -f Makefile.bc all \
76                 EMACS=$(ORIG19) EMACS_TYPE=orig TLSRCDIR=$(TLSRCDIR)
77         (cd gnus; make orig19 ORIG19=$(ORIG19))
78         (cd mh-e; make orig19 ORIG19=$(ORIG19))
79
80 install-orig19: orig19 install-mua-19
81         make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=orig
82
83
84 mule2:
85         make -f Makefile.bc all \
86                 EMACS=$(MULE2) EMACS_TYPE=mule TLSRCDIR=$(TLSRCDIR)
87         (cd gnus; make mule2 MULE2=$(MULE2))
88         (cd mh-e; make mule2 MULE2=$(MULE2))
89
90 install-mule2:  mule2 install-mua-19
91         make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=mule
92
93 install-mua-19:
94         (cd gnus; make install-19 TMDIR19=$(TMDIR19))
95         (cd mh-e; make install-19 TMDIR19=$(TMDIR19))
96
97
98 all:    $(UTILS) $(DVI)
99
100 ol2:    ol2.c
101         $(CC) $(CFLAGS) ol2.c -o ol2
102
103 decode-b:       decode-b.c
104         $(CC) $(CFLAGS) decode-b.c -o decode-b
105
106
107 tex:    ol2
108         (cd doc; make tex)
109
110 dvi:    ol2
111         (cd doc; make dvi)
112
113 ps:     ol2
114         (cd doc; make ps)
115
116
117 install:        $(UTILS) methods
118         cp -p $(UTILS) $(bindir)
119         cp -p methods/* $(bindir)
120
121
122 clean:
123         -rm $(GOMI)
124         -(cd doc; make clean)
125         -(cd gnus; make clean)
126         -(cd mh-e; make clean)
127
128
129 tar:
130         (cd doc; make tex)
131         (cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE))