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