tm 7.92.
[elisp/tm.git] / Makefile
1 #
2 # $Id: Makefile,v 7.30 1996/10/16 00:35:29 morioka Exp morioka $
3 #
4
5 VERSION = 7.92
6
7 SHELL   = /bin/sh
8 MAKE    = make
9 CC      = gcc
10 CFLAGS  = -O2
11 RM      = /bin/rm -f
12 CP      = /bin/cp -p
13 EMACS   = emacs
14
15 BINS    = src/ol2 src/decode-b
16 UTILS   = $(BINS)
17 GOMI    = $(BINS) mime-setup.el mime-setup.el~ \#mime-setup.el\# *.elc \
18                 .gnus-compile*
19 FLAGS   = -batch -q -no-site-file
20
21 PREFIX  = NONE
22 EXEC_PREFIX =
23
24 TM_FILES = tm/README.en tm/ChangeLog \
25                 tm/Makefile tm/inst-tm tm/TM-ELS tm/TM-CFG \
26                 tm/tm-def.el \
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 \
32                 tm/tm-tar.el \
33                 tm/tm-bbdb.el \
34                 tm/tm-edit.el tm/signature.el \
35                 tm/tm-setup.el tm/mime-setup.el.in \
36                 tm/sc-setup.el \
37                 tm/methods/tm* tm/methods/ChangeLog \
38                 tm/src/*.c \
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
42
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
46
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
51
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
55
56 TM_MAIL_FILES = tm-mail/TMAIL-ELS tm-mail/*.el tm-mail/ChangeLog
57
58 TM_VM_FILES =   tm-vm/TM-VM-ELS tm-vm/*.el tm-vm/ChangeLog
59
60 TM_MUA_FILES =  $(TM_MH_E_FILES) $(GNUS_MIME_FILES) $(TM_GNUS_FILES) \
61                 $(TM_MAIL_FILES) $(TM_VM_FILES)
62
63 MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/MEL-ELS mel/ChangeLog
64
65 MU_FILES = mu/*.el mu/MU-ELS mu/ChangeLog
66
67 TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/TL-ELS \
68                 tl/*.el tl/*.bdf \
69                 tl/doc/*.ol tl/doc/*.tex tl/doc/*.texi tl/ChangeLog
70
71 FILES   = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(MU_FILES) $(TL_FILES)
72
73 elc:
74         $(EMACS) $(FLAGS) -l inst-tm -f compile-tm $(PREFIX) $(EXEC_PREFIX)
75 #       $(SHELL) .gnus-compile
76
77 install-elc:    elc
78         $(EMACS) $(FLAGS) -l inst-tm -f install-tm $(PREFIX) $(EXEC_PREFIX)
79
80
81 all:    $(UTILS) $(DVI) elc
82
83 src/ol2:        src/ol2.c
84         $(CC) $(CFLAGS) src/ol2.c -o src/ol2
85
86 src/decode-b:   src/decode-b.c
87         $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
88
89
90 tex:    ol2
91         cd doc; $(MAKE) tex
92
93 dvi:    ol2
94         cd doc; $(MAKE) dvi
95
96 ps:     ol2
97         cd doc; $(MAKE) ps
98
99
100 install:        $(UTILS) methods install-elc
101         $(EMACS) $(FLAGS) -l inst-tm -f install-execs $(PREFIX) $(EXEC_PREFIX)
102
103
104 clean:
105         -$(RM) $(GOMI)
106         -cd doc; $(MAKE) clean
107         -cd gnus; $(MAKE) clean
108         -cd mh-e; $(MAKE) clean
109         cd ../mel; PWD=`pwd` $(MAKE) clean
110
111
112 oomori:
113         cd doc; $(MAKE) tex
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