tm 6.92.
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 6.28 1995/09/08 18:04:24 morioka Exp morioka $
3 #
4
5 include config.tm
6
7 UTILS   = ol2 decode-b
8 GOMI    = $(UTILS) *.elc loadpath
9
10 TM_FILES = tm/README.eng tm/rel-*.ol tm/Changes* \
11                 tm/config.tm tm/Makefile tm/mk-tm \
12                 tm/tm-view.el tm/tiny-mime.el \
13                 tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el tm/tm-def.el \
14                 tm/tm-ftp.el tm/tm-latex.el tm/tm-w3.el tm/tm-partial.el \
15                 tm/tm-tar.el \
16                 tm/tm-rich.el tm/richtext.el tm/tinyrich.el \
17                 tm/tm-comp.el \
18                 tm/tm-setup.el tm/mime-setup.el \
19                 tm/signature.el tm/sc-setup.el tm/gnushook.el \
20                 tm/*.c tm/methods/tm* \
21                 tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex \
22                 tm/doc/*.texi
23
24 TM_MUA_FILES =  tm/tm-rmail.el tm/tm-vm.el \
25                 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
26                 tm/gnus/*.el \
27                 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \
28                 tm/mh-e/*.el
29
30 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel
31
32 TL_FILES = tl/README.eng tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi
33
34 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
35
36 TARFILE = tm6.92.tar
37
38
39 nemacs:
40         cd ../tl; PWD=`pwd` make elc EMACS=$(NEMACS)
41         cd ../mel; PWD=`pwd` make elc EMACS=$(NEMACS)
42         $(NEMACS) -batch -l mk-tm -f compile-tm
43         cd gnus; PWD=`pwd` make gnus3 EMACS=$(NEMACS)
44         cd mh-e; PWD=`pwd` make elc EMACS=$(NEMACS)
45
46 install-nemacs: nemacs
47         cd ../tl; PWD=`pwd` \
48                 make install-18 EMACS=$(NEMACS) TLDIR18=$(TLDIR18)
49         cd ../mel; PWD=`pwd` \
50                 make install-18 EMACS=$(NEMACS) MELDIR18=$(MELDIR18)
51         $(NEMACS) -batch -l mk-tm -f install-tm $(TMDIR18)
52         cd gnus; PWD=`pwd` \
53                 make install-18 EMACS=$(NEMACS) TMDIR18=$(TM_GNUS_DIR18)
54         cd mh-e; PWD=`pwd` \
55                 make install-18 EMACS=$(NEMACS) TMDIR18=$(TMH_DIR18)
56
57
58 mule1:
59         cd ../tl; PWD=`pwd` make elc EMACS=$(MULE1)
60         cd ../mel; PWD=`pwd` make elc EMACS=$(MULE1)
61         $(MULE1) -batch -l mk-tm -f compile-tm
62         cd gnus; PWD=`pwd` make gnus3 EMACS=$(MULE1)
63         cd mh-e; PWD=`pwd` make elc EMACS=$(MULE1)
64
65 install-mule1:  mule1
66         cd ../tl; PWD=`pwd` \
67                 make install-18 EMACS=$(MULE1) TLDIR18=$(TLDIR18)
68         cd ../mel; PWD=`pwd` \
69                 make install-18 EMACS=$(MULE1) MELDIR18=$(MELDIR18)
70         $(MULE1) -batch -l mk-tm -f install-tm $(TMDIR18)
71         cd gnus; PWD=`pwd` \
72                 make install-18 EMACS=$(MULE1) TMDIR18=$(TM_GNUS_DIR18)
73         cd mh-e; PWD=`pwd` \
74                 make install-18 EMACS=$(MULE1) TMDIR18=$(TMH_DIR18)
75
76
77 orig19:
78         cd ../tl; PWD=`pwd` make elc EMACS=$(ORIG19)
79         cd ../mel; PWD=`pwd` make elc EMACS=$(ORIG19)
80         $(ORIG19) -batch -l mk-tm -f compile-tm
81         cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
82 # If you use (ding) GNUS, please use following comment:
83 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
84 # If you use Gnus v5, please use following comment:
85 #       cd gnus; PWD=`pwd` make gnus5 EMACS=$(ORIG19)
86         cd mh-e; PWD=`pwd` make elc EMACS=$(ORIG19)
87
88 install-orig19: orig19
89         cd ../tl; PWD=`pwd` \
90                 make install-19 EMACS=$(ORIG19) TLDIR19=$(TLDIR19)
91         cd ../mel; PWD=`pwd` \
92                 make install-19 EMACS=$(ORIG19) MELDIR19=$(MELDIR19)
93         $(ORIG19) -batch -l mk-tm -f install-tm $(TMDIR19)
94         cd gnus; PWD=`pwd` \
95                 make install-19 EMACS=$(ORIG19) TMDIR19=$(TM_GNUS_DIR19)
96         cd mh-e; PWD=`pwd` \
97                 make install-19 EMACS=$(ORIG19) TMDIR19=$(TMH_DIR19)
98
99
100 mule2:
101         cd ../tl; PWD=`pwd` make elc EMACS=$(MULE2)
102         cd ../mel; PWD=`pwd` make elc EMACS=$(MULE2)
103         $(MULE2) -batch -l mk-tm -f compile-tm
104         cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
105 # If you use (ding) GNUS, please use following comment:
106 #       cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
107 # If you use Gnus v5, please use following comment:
108 #       cd gnus; PWD=`pwd` make gnus5 EMACS=$(MULE2)
109         cd mh-e; PWD=`pwd` make elc EMACS=$(MULE2)      
110
111 install-mule2:  mule2
112         cd ../tl; PWD=`pwd` \
113                 make install-19 EMACS=$(MULE2) TLDIR19=$(TLDIR19)
114         cd ../mel; PWD=`pwd` \
115                 make install-19 EMACS=$(MULE2) MELDIR19=$(MELDIR19)
116         $(MULE2) -batch -l mk-tm -f install-tm $(TMDIR19)
117         cd gnus; PWD=`pwd` \
118                 make install-19 EMACS=$(MULE2) TMDIR19=$(TM_GNUS_DIR19)
119         cd mh-e; PWD=`pwd` \
120                 make install-19 EMACS=$(MULE2) TMDIR19=$(TMH_DIR19)
121
122
123 all:    $(UTILS) $(DVI)
124
125 ol2:    ol2.c
126         $(CC) $(CFLAGS) ol2.c -o ol2
127
128 decode-b:       decode-b.c
129         $(CC) $(CFLAGS) decode-b.c -o decode-b
130
131
132 tex:    ol2
133         cd doc; make tex
134
135 dvi:    ol2
136         cd doc; make dvi
137
138 ps:     ol2
139         cd doc; make ps
140
141
142 install:        $(UTILS) methods
143         $(CP) $(UTILS) $(bindir)
144         $(CP) methods/* $(bindir)
145
146
147 clean:
148         -$(RM) $(GOMI)
149         -cd doc; make clean
150         -cd gnus; make clean
151         -cd mh-e; make clean
152         cd ../mel; PWD=`pwd` make clean
153
154
155 tar:
156         cd doc; make tex
157         cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)