d23fcefd536379eab2164d652fb13216f997e980
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 7.8 1995/12/07 12:07:47 morioka Exp $
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.en 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.en 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.31.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         cd gnus; PWD=`pwd` make gnus5 EMACS=$(XEMACS)
69         cd gnus; PWD=`pwd` make sgnus EMACS=$(XEMACS)
70         cd mh-e; PWD=`pwd` make elc EMACS=$(XEMACS)
71
72 install-xemacs: xemacs
73         cd ../tl; PWD=`pwd` \
74                 make install-19 EMACS=$(XEMACS) TLDIR19=$(TLDIR19)
75         cd ../mel; PWD=`pwd` \
76                 make install-19 EMACS=$(XEMACS) MELDIR19=$(MELDIR19)
77         $(XEMACS) -batch -l mk-tm -f install-tm $(TMDIR19)
78         cd gnus; PWD=`pwd` \
79                 make install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19)
80         cd mh-e; PWD=`pwd` \
81                 make install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19)
82
83
84 19_29:
85         cd ../tl; PWD=`pwd` make elc EMACS=$(EMACS19_29)
86         cd ../mel; PWD=`pwd` make elc EMACS=$(EMACS19_29)
87         $(EMACS19_29) -batch -l mk-tm -f compile-tm
88         cd gnus; PWD=`pwd` make gnus EMACS=$(EMACS19_29)
89         cd gnus; PWD=`pwd` make gnus5 EMACS=$(EMACS19_29)
90         cd gnus; PWD=`pwd` make sgnus EMACS=$(EMACS19_29)
91         cd mh-e; PWD=`pwd` make elc EMACS=$(EMACS19_29) 
92
93 install-19_29:  19_29
94         cd ../tl; PWD=`pwd` \
95                 make install-19 EMACS=$(EMACS19_29) TLDIR19=$(TLDIR19_29)
96         cd ../mel; PWD=`pwd` \
97                 make install-19 EMACS=$(EMACS19_29) MELDIR19=$(MELDIR19_29)
98         $(EMACS19_29) -batch -l mk-tm -f install-tm $(TMDIR19_29)
99         cd gnus; PWD=`pwd` \
100                 make install-19_29 EMACS=$(EMACS19_29) \
101                         TMDIR19_29=$(TM_GNUS_DIR19_29)
102         cd mh-e; PWD=`pwd` \
103                 make install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29)
104
105
106 all:    $(UTILS) $(DVI)
107
108 src/ol2:        src/ol2.c
109         $(CC) $(CFLAGS) src/ol2.c -o src/ol2
110
111 src/decode-b:   src/decode-b.c
112         $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
113
114
115 tex:    ol2
116         cd doc; make tex
117
118 dvi:    ol2
119         cd doc; make dvi
120
121 ps:     ol2
122         cd doc; make ps
123
124
125 install:        $(UTILS) methods
126         $(CP) $(UTILS) $(bindir)
127         $(CP) methods/tm* $(bindir)
128
129
130 clean:
131         -$(RM) $(GOMI)
132         -cd doc; make clean
133         -cd gnus; make clean
134         -cd mh-e; make clean
135         cd ../mel; PWD=`pwd` make clean
136
137
138 tar:
139         cd doc; make tex
140         cd ..; gtar cvzf $(TARFILE) $(FILES)