2 # $Id: Makefile,v 7.30 1996/10/16 00:35:29 morioka Exp morioka $
15 BINS = src/ol2 src/decode-b
17 GOMI = $(BINS) mime-setup.el mime-setup.el~ \#mime-setup.el\# *.elc \
19 FLAGS = -batch -q -no-site-file
24 TM_FILES = tm/README.en tm/ChangeLog \
25 tm/Makefile tm/inst-tm tm/TM-ELS tm/TM-CFG \
27 tm/tm-eword.el tm/tm-ew-d.el tm/tm-ew-e.el \
28 tm/tm-view.el tm/tm-parse.el \
29 tm/tm-text.el tm/tm-image.el \
30 tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
31 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
34 tm/tm-edit.el tm/signature.el \
35 tm/tm-setup.el tm/mime-setup.el.in \
37 tm/methods/tm* tm/methods/ChangeLog \
39 tm/doc/*.sgml tm/doc/*.texi tm/doc/*.info \
40 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
41 tm/old-logs/*.en tm/old-logs/*.ja
43 TM_MH_E_FILES = tm-mh-e/Makefile tm-mh-e/mk-tmh tm-mh-e/TMH-ELS \
44 tm-mh-e/*.el tm-mh-e/ChangeLog \
45 tm-mh-e/*.ol tm-mh-e/*.texi tm-mh-e/*.info tm-mh-e/*.tex
47 GNUS_MIME_FILES = gnus-mime/Makefile gnus-mime/*-path \
48 gnus-mime/Gnus-MIME-ELS gnus-mime/*.el \
49 gnus-mime/*.sgml gnus-mime/*.texi gnus-mime/*.info \
50 gnus-mime/*.ol gnus-mime/*.tex gnus-mime/ChangeLog
52 TM_GNUS_FILES = tm-gnus/Makefile tm-gnus/*-path tm-gnus/mk-tgnus \
53 tm-gnus/TGNUS-ELS tm-gnus/*.el tm-gnus/ChangeLog \
54 tm-gnus/*.ol tm-gnus/*.texi tm-gnus/*.info tm-gnus/*.tex
56 TM_MAIL_FILES = tm-mail/TMAIL-ELS tm-mail/*.el tm-mail/ChangeLog
58 TM_VM_FILES = tm-vm/TM-VM-ELS tm-vm/*.el tm-vm/ChangeLog
60 TM_MUA_FILES = $(TM_MH_E_FILES) $(GNUS_MIME_FILES) $(TM_GNUS_FILES) \
61 $(TM_MAIL_FILES) $(TM_VM_FILES)
63 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/MEL-ELS mel/ChangeLog
65 MU_FILES = mu/*.el mu/MU-ELS mu/ChangeLog
67 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/TL-ELS \
69 tl/doc/*.ol tl/doc/*.tex tl/doc/*.texi tl/ChangeLog
71 FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(MU_FILES) $(TL_FILES)
74 $(EMACS) $(FLAGS) -l inst-tm -f compile-tm $(PREFIX) $(EXEC_PREFIX)
75 # $(SHELL) .gnus-compile
78 $(EMACS) $(FLAGS) -l inst-tm -f install-tm $(PREFIX) $(EXEC_PREFIX)
81 all: $(UTILS) $(DVI) elc
84 $(CC) $(CFLAGS) src/ol2.c -o src/ol2
86 src/decode-b: src/decode-b.c
87 $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
100 install: $(UTILS) methods install-elc
101 $(EMACS) $(FLAGS) -l inst-tm -f install-execs $(PREFIX) $(EXEC_PREFIX)
106 -cd doc; $(MAKE) clean
107 -cd gnus; $(MAKE) clean
108 -cd mh-e; $(MAKE) clean
109 cd ../mel; PWD=`pwd` $(MAKE) clean
114 cd ..; gtar cvf tm$(VERSION).tar $(FILES)
115 -cd ..; mkdir tm$(VERSION)
116 cp ../tm-oomori/README.?? ../tm$(VERSION)
117 cd ../tm$(VERSION); gtar xvf ../tm$(VERSION).tar
118 cd ..; gtar cvzf tm$(VERSION).tar.gz tm$(VERSION)
119 cd ..; $(RM) -r tm$(VERSION); rm tm$(VERSION).tar