79f0a43a3a311fae51b40e70df45485dcc74904c
[elisp/tm.git] / Makefile.bc
1 #
2 # $Id: Makefile.bc,v 2.0 1995/03/26 16:25:44 morioka Exp morioka $
3 #
4
5 TMMEL   = tm-view.el tm-rmail.el tm-comp.el
6 TMMELC  = ${TMMEL:el=elc}
7
8 TM_EL   = signature.el \
9         tiny-mime.el tm-misc.el tm-$(EMACS_TYPE).el $(TMMEL) tm-rich.el
10 TM_ELC  = ${TM_EL:el=elc}
11 ALL_EL  = $(TM_EL) tm-ftp.el tm-latex.el tm-partial.el \
12         tm-vm.el \
13         tm-setup.el mime-setup.el
14
15 .SUFFIXES:      .el .elc
16
17 .el.elc:
18         $(EMACS) -batch -q . -f batch-byte-compile $<
19
20
21 all:    $(TM_ELC)
22
23 signature.elc:  signature.el
24         $(EMACS) -batch -q . -l $(TLSRCDIR)/tl-header.el \
25                 -f batch-byte-compile $<
26
27 tiny-mime.elc:  tiny-mime.el
28         $(EMACS) -batch -q . \
29                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-header.el \
30                 $(OPT) \
31                 -f batch-byte-compile $<
32
33 tm-misc.elc:    tm-misc.el
34         $(EMACS) -batch -q . \
35                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-list.el \
36                 -l $(TLSRCDIR)/tl-header.el \
37                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
38                 $(OPT) \
39                 -l tm-$(EMACS_TYPE).el -l tiny-mime.el \
40                 -f batch-byte-compile $<
41
42 tm-$(EMACS_TYPE).elc:   tm-$(EMACS_TYPE).el
43         $(EMACS) -batch -q . \
44                 -l $(TLSRCDIR)/tl-str.el \
45                 -l $(TLSRCDIR)/tl-list.el \
46                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
47                 $(OPT) \
48                 -f batch-byte-compile $<
49
50 $(TMMELC):      $(TMMEL)
51         $(EMACS) -batch -q . \
52                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-list.el \
53                 -l $(TLSRCDIR)/tl-header.el \
54                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
55                 $(OPT) \
56                 -l tm-$(EMACS_TYPE).el -l tiny-mime.el -l tm-misc.el \
57                 -f batch-byte-compile $?
58
59 tm-rich.elc:    tm-rich.el
60         $(EMACS) -batch -q . \
61                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-list.el \
62                 -l $(TLSRCDIR)/tl-header.el \
63                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
64                 -l tm-$(EMACS_TYPE).el -l tiny-mime.el -l tm-misc.el \
65                 -l tm-view.el \
66                 -f batch-byte-compile $<
67
68
69 install:
70         -(cd $(TMDIR); chmod +w $(ALL_EL))
71         cp -p $(ALL_EL) $(TMDIR)
72         mv $(TM_ELC) $(TMDIR)
73
74
75 clean:
76         -rm *.elc