tm 7.30.
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 7.6 1995/12/04 00:44:28 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 tm/tm-rich.el \
15                 tm/tm-partial.el \
16                 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
17                 tm/tm-tar.el \
18                 tm/tm-edit.el tm/signature.el \
19                 tm/tm-setup.el tm/mime-setup.el \
20                 tm/sc-setup.el \
21                 tm/methods/tm* \
22                 tm/src/*.c \
23                 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
24                 tm/doc/*.texi
25
26 TM_MUA_FILES =  tm/tm-rmail.el tm/tm-vm.el tm/tm-mail.el \
27                 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
28                 tm/gnus/*.el tm/gnus/ChangeLog-* \
29                 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \
30                 tm/mh-e/*.el tm/mh-e/ChangeLog-*
31
32 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/Changes*
33
34 TL_FILES = tl/README.eng tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi \
35                 tl/Changes*
36
37 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
38
39 TARFILE = tm7.30.tar.gz
40
41
42 18:
43         cd ../tl; PWD=`pwd` make elc EMACS=$(EMACS18)
44         cd ../mel; PWD=`pwd` make elc EMACS=$(EMACS18)
45         $(EMACS18) -batch -l mk-tm -f compile-tm
46         cd gnus; PWD=`pwd` make gnus3 EMACS=$(EMACS18)
47 # If you use GNUS 4.*, please use following comment:
48 #       cd gnus; PWD=`pwd` make gnus4 EMACS=$(EMACS18)
49         cd mh-e; PWD=`pwd` make elc EMACS=$(EMACS18)
50
51 install-18:     18
52         cd ../tl; PWD=`pwd` \
53                 make install-18 EMACS=$(EMACS18) TLDIR18=$(TLDIR18)
54         cd ../mel; PWD=`pwd` \
55                 make install-18 EMACS=$(EMACS18) MELDIR18=$(MELDIR18)
56         $(EMACS18) -batch -l mk-tm -f install-tm $(TMDIR18)
57         cd gnus; PWD=`pwd` \
58                 make install-18 EMACS=$(EMACS18) TMDIR18=$(TM_GNUS_DIR18)
59         cd mh-e; PWD=`pwd` \
60                 make install-18 EMACS=$(EMACS18) TMDIR18=$(TMH_DIR18)
61
62
63 xemacs:
64         cd ../tl; PWD=`pwd` make elc EMACS=$(XEMACS)
65         cd ../mel; PWD=`pwd` make elc EMACS=$(XEMACS)
66         $(XEMACS) -batch -l mk-tm -f compile-tm
67         cd gnus; PWD=`pwd` make gnus EMACS=$(XEMACS)
68 # If you use Gnus 5.*, please use following comment:
69 #       cd gnus; PWD=`pwd` make gnus5 EMACS=$(XEMACS)
70 # If you use September Gnus, please use following comment:
71 #       cd gnus; PWD=`pwd` make sgnus EMACS=$(XEMACS)
72         cd mh-e; PWD=`pwd` make elc EMACS=$(XEMACS)
73
74 install-xemacs: xemacs
75         cd ../tl; PWD=`pwd` \
76                 make install-19 EMACS=$(XEMACS) TLDIR19=$(TLDIR19)
77         cd ../mel; PWD=`pwd` \
78                 make install-19 EMACS=$(XEMACS) MELDIR19=$(MELDIR19)
79         $(XEMACS) -batch -l mk-tm -f install-tm $(TMDIR19)
80         cd gnus; PWD=`pwd` \
81                 make install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19)
82         cd mh-e; PWD=`pwd` \
83                 make install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19)
84
85
86 19_29:
87         cd ../tl; PWD=`pwd` make elc EMACS=$(EMACS19_29)
88         cd ../mel; PWD=`pwd` make elc EMACS=$(EMACS19_29)
89         $(EMACS19_29) -batch -l mk-tm -f compile-tm
90         cd gnus; PWD=`pwd` make gnus EMACS=$(EMACS19_29)
91 # If you use September Gnus, please use following comment:
92 #       cd gnus; PWD=`pwd` make sgnus EMACS=$(EMACS19_29)
93         cd mh-e; PWD=`pwd` make elc EMACS=$(EMACS19_29) 
94
95 install-19_29:  19_29
96         cd ../tl; PWD=`pwd` \
97                 make install-19 EMACS=$(EMACS19_29) TLDIR19=$(TLDIR19_29)
98         cd ../mel; PWD=`pwd` \
99                 make install-19 EMACS=$(EMACS19_29) MELDIR19=$(MELDIR19_29)
100         $(EMACS19_29) -batch -l mk-tm -f install-tm $(TMDIR19_29)
101         cd gnus; PWD=`pwd` \
102                 make install-19_29 EMACS=$(EMACS19_29) \
103                         TMDIR19_29=$(TM_GNUS_DIR19_29)
104         cd mh-e; PWD=`pwd` \
105                 make install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29)
106
107
108 all:    $(UTILS) $(DVI)
109
110 src/ol2:        src/ol2.c
111         $(CC) $(CFLAGS) src/ol2.c -o src/ol2
112
113 src/decode-b:   src/decode-b.c
114         $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
115
116
117 tex:    ol2
118         cd doc; make tex
119
120 dvi:    ol2
121         cd doc; make dvi
122
123 ps:     ol2
124         cd doc; make ps
125
126
127 install:        $(UTILS) methods
128         $(CP) $(UTILS) $(bindir)
129         $(CP) methods/tm* $(bindir)
130
131
132 clean:
133         -$(RM) $(GOMI)
134         -cd doc; make clean
135         -cd gnus; make clean
136         -cd mh-e; make clean
137         cd ../mel; PWD=`pwd` make clean
138
139
140 tar:
141         cd doc; make tex
142         cd ..; gtar cvzf $(TARFILE) $(FILES)