2 # $Id: Makefile,v 7.14 1996/01/18 10:27:43 morioka Exp morioka $
7 BINS = src/ol2 src/decode-b
9 GOMI = $(BINS) *.elc loadpath
10 FLAGS = -batch -q -no-site-file -l mk-tm
12 TM_FILES = tm/README.en tm/ChangeLog \
13 tm/config.tm tm/Makefile tm/mk-tm \
14 tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el tm/tm-def.el \
15 tm/tm-eword.el tm/tm-ew-d.el tm/tm-ew-e.el \
16 tm/tm-view.el tm/tm-parse.el \
17 tm/tm-rich.el tm/tm-image.el \
18 tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
19 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
21 tm/tm-edit.el tm/signature.el \
22 tm/tm-setup.el tm/mime-setup.el \
26 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
27 tm/doc/*.texi tm/old-logs/*.en tm/old-logs/*.ja
29 TM_MUA_FILES = tm/tm-rmail.el tm/tm-vm.el tm/tm-mail.el \
30 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
31 tm/gnus/*.el tm/gnus/ChangeLog \
32 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \
33 tm/mh-e/*.el tm/mh-e/ChangeLog
35 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/ChangeLog
37 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi \
40 FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
42 TARFILE = tm7.41.tar.gz
46 cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
47 cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
48 $(EMACS18) $(FLAGS) -f compile-tm
49 cd gnus; PWD=`pwd` $(MAKE) gnus3 EMACS=$(EMACS18)
50 # If you use GNUS 4.*, please use following comment:
51 # cd gnus; PWD=`pwd` $(MAKE) gnus4 EMACS=$(EMACS18)
52 cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18)
56 $(MAKE) install-18 EMACS=$(EMACS18) TLDIR18=$(TLDIR18)
57 cd ../mel; PWD=`pwd` \
58 $(MAKE) install-18 EMACS=$(EMACS18) MELDIR18=$(MELDIR18)
59 $(EMACS18) $(FLAGS) -f install-tm $(TMDIR18)
61 $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TM_GNUS_DIR18)
63 $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TMH_DIR18)
67 cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
68 cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
69 $(XEMACS) $(FLAGS) -f compile-tm
70 cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(XEMACS)
71 cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(XEMACS)
72 cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(XEMACS)
73 cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS)
75 install-xemacs: xemacs
77 $(MAKE) install-19 EMACS=$(XEMACS) TLDIR19=$(TLDIR19)
78 cd ../mel; PWD=`pwd` \
79 $(MAKE) install-19 EMACS=$(XEMACS) MELDIR19=$(MELDIR19)
80 $(XEMACS) $(FLAGS) -f install-tm $(TMDIR19)
82 $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19)
84 $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19)
88 cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)
89 cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)
90 $(EMACS19_29) $(FLAGS) -f compile-tm
91 cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(EMACS19_29)
92 # cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(EMACS19_29)
93 cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(EMACS19_29)
94 cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29)
98 $(MAKE) install-19 EMACS=$(EMACS19_29) TLDIR19=$(TLDIR19_29)
99 cd ../mel; PWD=`pwd` \
100 $(MAKE) install-19 EMACS=$(EMACS19_29) MELDIR19=$(MELDIR19_29)
101 $(EMACS19_29) $(FLAGS) -f install-tm $(TMDIR19_29)
103 $(MAKE) install-19_29 EMACS=$(EMACS19_29) \
104 TMDIR19_29=$(TM_GNUS_DIR19_29)
106 $(MAKE) install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29)
112 $(CC) $(CFLAGS) src/ol2.c -o src/ol2
114 src/decode-b: src/decode-b.c
115 $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
128 install: $(UTILS) methods
129 $(CP) $(UTILS) $(bindir)
130 $(CP) methods/tm* $(bindir)
135 -cd doc; $(MAKE) clean
136 -cd gnus; $(MAKE) clean
137 -cd mh-e; $(MAKE) clean
138 cd ../mel; PWD=`pwd` $(MAKE) clean
143 cd ..; gtar cvzf $(TARFILE) $(FILES)