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