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