2 # $Id: Makefile,v 7.8 1995/12/07 12:07:47 morioka Exp morioka $
7 UTILS = src/ol2 src/decode-b
8 GOMI = $(UTILS) *.elc loadpath
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-rich.el \
15 tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
16 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
18 tm/tm-edit.el tm/signature.el \
19 tm/tm-setup.el tm/mime-setup.el \
23 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
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-*
32 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/Changes*
34 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi \
37 FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
39 TARFILE = tm7.33.tar.gz
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)
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)
58 make install-18 EMACS=$(EMACS18) TMDIR18=$(TM_GNUS_DIR18)
60 make install-18 EMACS=$(EMACS18) TMDIR18=$(TMH_DIR18)
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)
72 install-xemacs: xemacs
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)
79 make install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19)
81 make install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19)
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)
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)
100 make install-19_29 EMACS=$(EMACS19_29) \
101 TMDIR19_29=$(TM_GNUS_DIR19_29)
103 make install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29)
109 $(CC) $(CFLAGS) src/ol2.c -o src/ol2
111 src/decode-b: src/decode-b.c
112 $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
125 install: $(UTILS) methods
126 $(CP) $(UTILS) $(bindir)
127 $(CP) methods/tm* $(bindir)
135 cd ../mel; PWD=`pwd` make clean
140 cd ..; gtar cvzf $(TARFILE) $(FILES)