de6699fa1b0a481e5dfcf22f3571d50503f83e23
[elisp/tm.git] / Makefile.bc
1 #
2 # $Id: Makefile.bc,v 1.4 1995/01/31 10:44:26 morioka Exp $
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-setup.el mime-setup.el
12
13 .SUFFIXES:      .el .elc
14
15 .el.elc:
16         $(EMACS) -batch -q . -f batch-byte-compile $<
17
18
19 all:    $(TM_ELC)
20
21 signature.elc:  signature.el
22         $(EMACS) -batch -q . -l $(TLSRCDIR)/tl-header.el \
23                 -f batch-byte-compile $<
24
25 tiny-mime.elc:  tiny-mime.el
26         $(EMACS) -batch -q . \
27                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-header.el \
28                 -f batch-byte-compile $<
29
30 tm-misc.elc:    tm-misc.el
31         $(EMACS) -batch -q . \
32                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-list.el \
33                 -l $(TLSRCDIR)/tl-header.el \
34                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
35                 -l tm-$(EMACS_TYPE).el -l tiny-mime.el \
36                 -f batch-byte-compile $<
37
38 tm-$(EMACS_TYPE).elc:   tm-$(EMACS_TYPE).el
39         $(EMACS) -batch -q . \
40                 -l $(TLSRCDIR)/tl-str.el \
41                 -l $(TLSRCDIR)/tl-list.el \
42                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
43                 -f batch-byte-compile $<
44
45 $(TMMELC):      $(TMMEL)
46         $(EMACS) -batch -q . \
47                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-list.el \
48                 -l $(TLSRCDIR)/tl-header.el \
49                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
50                 -l tm-$(EMACS_TYPE).el -l tiny-mime.el -l tm-misc.el \
51                 -f batch-byte-compile $?
52
53 tm-rich.elc:    tm-rich.el
54         $(EMACS) -batch -q . \
55                 -l $(TLSRCDIR)/tl-str.el -l $(TLSRCDIR)/tl-list.el \
56                 -l $(TLSRCDIR)/tl-header.el \
57                 -l $(TLSRCDIR)/tl-$(EMACS_TYPE).el \
58                 -l tm-$(EMACS_TYPE).el -l tiny-mime.el -l tm-misc.el \
59                 -l tm-view.el \
60                 -f batch-byte-compile $<
61
62
63 install:
64         -(cd $(TMDIR); chmod +w $(ALL_EL))
65         cp -p $(ALL_EL) $(TMDIR)
66         mv $(TM_ELC) $(TMDIR)
67
68
69 clean:
70         -rm *.elc