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