tm 5.18
[elisp/tm.git] / Makefile.19
1 EMACS   = mule2
2 ORIG    = emacs19
3 MULE    = mule2
4
5 TLEL    = tl-header.el tl-str.el
6 TLELC   = ${TLEL:el=elc}
7 TMEL    = tm-misc.el
8 TMELC   = ${TMEL:el=elc}
9 TMMEL   = tm-view.el tm-rmail.el tm-comp.el tm-gnus4.el
10 TMMELC  = ${TMMEL:el=elc}
11 TMVEL   = tm-rich.el tm-vm.el
12 TMVELC  = ${TMVEL:el=elc}
13
14 TLDIR   = $(HOME)/lib/emacs19/lisp
15 TMDIR   = $(HOME)/lib/emacs19/lisp/tm
16
17
18 .SUFFIXES:      .el .elc
19
20 .el.elc:
21         $(EMACS) -batch -q . -f batch-byte-compile $<
22
23 all:    $(TLELC) tl-orig.elc tl-mule.elc signature.elc \
24         tiny-mime.elc $(TMELC) tm-orig.elc tm-mule.elc $(TMMELC) \
25         tm-mh-e.elc tm-gnus.elc $(TMVELC)
26
27 $(TLELC):       $(TLEL)
28
29 tl-orig.elc:    tl-orig.el
30         $(ORIG) -batch -q . -f batch-byte-compile $<
31
32 tl-mule.elc:    tl-mule.el
33         $(MULE) -batch -q . -f batch-byte-compile $<
34
35 tl-list.elc:    tl-list.el
36         $(EMACS) -batch -q . -l tl-list.el -f batch-byte-compile $<
37
38 signature.elc:  signature.el
39         $(EMACS) -batch -q . -l tl-header.el -f batch-byte-compile $<
40
41 tiny-mime.elc:  tiny-mime.el
42         $(EMACS) -batch -q . -l tl-header.el -f batch-byte-compile $<
43
44 $(TMELC):
45         $(EMACS) -batch -q . -l tiny-mime.el -f batch-byte-compile $<
46
47 tm-orig.elc:    tm-orig.el
48         $(ORIG) -batch -q . -l tl-orig.el -f batch-byte-compile $<
49
50 tm-mule.elc:    tm-mule.el
51         $(MULE) -batch -q . -l tl-list.el -f batch-byte-compile $<
52
53 $(TMMELC):
54         $(EMACS) -batch -q . -l tiny-mime.el -l tm-misc.el \
55                 -f batch-byte-compile $<
56
57 tm-gnus.elc:    tm-gnus.el
58         $(EMACS) -batch -q . -l tiny-mime.el -l tm-misc.el -l gnus \
59                 -f batch-byte-compile $<
60
61 tm-mh-e.elc:    tm-mh-e.el
62         $(EMACS) -batch -q . -l tiny-mime.el -l tm-misc.el -l mh-e \
63                 -f batch-byte-compile $<
64
65 $(TMVELC):
66         $(EMACS) -batch -q . -l tiny-mime.el -l tm-misc.el -l tm-view.el \
67                 -f batch-byte-compile $<
68
69 install:        all tl-install tm-install
70
71 tl-install:
72         -chmod +w $(TLDIR)/*.el
73         cp -p tl-*.el signature.el $(TLDIR)
74         mv tl-*.elc signature.elc $(TLDIR)
75
76 tm-install:
77         -chmod +w $(TMDIR)/*.el
78         cp -p tiny-mime.el tm-*.el mime-setup.el \
79                 gnushook.el sc-setup.el $(TMDIR)
80         mv tiny-mime.elc tm-*.elc $(TMDIR)
81
82 clean:
83         -rm *.elc