2 # $Id: Makefile,v 7.12 1995/12/25 05:43:05 morioka Exp morioka $
7 BINS = src/ol2 src/decode-b
9 GOMI = $(BINS) *.elc loadpath
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 \
16 tm/tm-rich.el tm/tm-image.el \
17 tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
18 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
20 tm/tm-edit.el tm/signature.el \
21 tm/tm-setup.el tm/mime-setup.el \
25 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
28 TM_MUA_FILES = tm/tm-rmail.el tm/tm-vm.el tm/tm-mail.el \
29 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
30 tm/gnus/*.el tm/gnus/ChangeLog-* \
31 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \
32 tm/mh-e/*.el tm/mh-e/ChangeLog-*
34 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/ChangeLog
36 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi \
39 FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
41 TARFILE = tm7.40.tar.gz
45 cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
46 cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
47 $(EMACS18) -batch -l mk-tm -f compile-tm
48 cd gnus; PWD=`pwd` $(MAKE) gnus3 EMACS=$(EMACS18)
49 # If you use GNUS 4.*, please use following comment:
50 # cd gnus; PWD=`pwd` $(MAKE) gnus4 EMACS=$(EMACS18)
51 cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
55 $(MAKE) install-18 EMACS=$(EMACS18) TLDIR18=$(TLDIR18)
56 cd ../mel; PWD=`pwd` \
57 $(MAKE) install-18 EMACS=$(EMACS18) MELDIR18=$(MELDIR18)
58 $(EMACS18) -batch -l mk-tm -f install-tm $(TMDIR18)
60 $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TM_GNUS_DIR18)
62 $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TMH_DIR18)
66 cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
67 cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
68 $(XEMACS) -batch -l mk-tm -f compile-tm
69 cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(XEMACS)
70 cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(XEMACS)
71 cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(XEMACS)
72 cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
74 install-xemacs: xemacs
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)
81 $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19)
83 $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19)
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 # cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(EMACS19_29)
92 cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(EMACS19_29)
93 cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)
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)
102 $(MAKE) install-19_29 EMACS=$(EMACS19_29) \
103 TMDIR19_29=$(TM_GNUS_DIR19_29)
105 $(MAKE) install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29)
111 $(CC) $(CFLAGS) src/ol2.c -o src/ol2
113 src/decode-b: src/decode-b.c
114 $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
127 install: $(UTILS) methods
128 $(CP) $(UTILS) $(bindir)
129 $(CP) methods/tm* $(bindir)
134 -cd doc; $(MAKE) clean
135 -cd gnus; $(MAKE) clean
136 -cd mh-e; $(MAKE) clean
137 cd ../mel; PWD=`pwd` $(MAKE) clean
142 cd ..; gtar cvzf $(TARFILE) $(FILES)