tm 7.65.
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 7.22 1996/05/08 15:40:58 morioka Exp morioka $
3 #
4
5 SHELL   = /bin/sh
6 MAKE    = make
7 CC      = gcc
8 CFLAGS  = -O2
9 RM      = /bin/rm -f
10 CP      = /bin/cp -p
11 EMACS   = emacs
12
13 BINS    = src/ol2 src/decode-b
14 UTILS   = $(BINS)
15 GOMI    = $(BINS) mime-setup.el mime-setup.el~ \#mime-setup.el\# *.elc \
16                 .gnus-compile*
17 FLAGS   = -batch -q -no-site-file
18
19 TM_FILES = tm/README.en tm/ChangeLog \
20                 tm/Makefile tm/inst-tm tm/TM-ELS tm/TM-CFG \
21                 tm/tm-def.el \
22                 tm/tm-eword.el tm/tm-ew-d.el tm/tm-ew-e.el \
23                 tm/tm-view.el tm/tm-parse.el \
24                 tm/tm-text.el tm/tm-image.el \
25                 tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
26                 tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
27                 tm/tm-tar.el \
28                 tm/tm-bbdb.el \
29                 tm/tm-edit.el tm/signature.el \
30                 tm/tm-setup.el tm/mime-setup.el.in \
31                 tm/sc-setup.el \
32                 tm/methods/tm* tm/methods/ChangeLog \
33                 tm/src/*.c \
34                 tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
35                 tm/doc/*.texi tm/old-logs/*.en tm/old-logs/*.ja
36
37 TM_MUA_FILES =  tm/tm-rmail.el tm/tm-vm.el tm/tm-mail.el \
38                 tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
39                 tm/gnus/*.el tm/gnus/ChangeLog \
40                 tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/tmh-els \
41                 tm/mh-e/code-jp.ol tm/mh-e/*.el tm/mh-e/ChangeLog
42
43 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/mel-els mel/ChangeLog
44
45 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/tl-els \
46                 tl/*.el tl/*.bdf \
47                 tl/doc/*.texi tl/ChangeLog
48
49 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
50
51 TARFILE = tm7.65.tar.gz
52
53 elc:
54         $(EMACS) $(FLAGS) -l inst-tm -f compile-tm
55         $(SHELL) .gnus-compile
56
57 install-elc:    elc
58         $(EMACS) $(FLAGS) -l inst-tm -f install-tm
59
60
61 all:    $(UTILS) $(DVI) elc
62
63 src/ol2:        src/ol2.c
64         $(CC) $(CFLAGS) src/ol2.c -o src/ol2
65
66 src/decode-b:   src/decode-b.c
67         $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
68
69
70 tex:    ol2
71         cd doc; $(MAKE) tex
72
73 dvi:    ol2
74         cd doc; $(MAKE) dvi
75
76 ps:     ol2
77         cd doc; $(MAKE) ps
78
79
80 install:        $(UTILS) methods install-elc
81         $(EMACS) $(FLAGS) -l inst-tm -f install-execs
82
83
84 clean:
85         -$(RM) $(GOMI)
86         -cd doc; $(MAKE) clean
87         -cd gnus; $(MAKE) clean
88         -cd mh-e; $(MAKE) clean
89         cd ../mel; PWD=`pwd` $(MAKE) clean
90
91
92 tar:
93         cd doc; $(MAKE) tex
94         cd ..; gtar cvzf $(TARFILE) $(FILES)