tm 5.16
[elisp/tm.git] / Makefile.19
1 EMACS   = mule2
2 ORIG    = emacs19
3 MULE    = mule2
4
5 TLEL    = tl-header.el tl-str.el signature.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 \
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 tiny-mime.elc:  tiny-mime.el
39
40 $(TMELC):
41         $(EMACS) -batch -q . -l tiny-mime -f batch-byte-compile $<
42
43 tm-orig.elc:    tm-orig.el
44         $(ORIG) -batch -q . -l tl-orig.el -f batch-byte-compile $<
45
46 tm-mule.elc:    tm-mule.el
47         $(MULE) -batch -q . -f batch-byte-compile $<
48
49 $(TMMELC):
50         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -f batch-byte-compile $<
51
52 tm-gnus.elc:    tm-gnus.el
53         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -l gnus \
54                 -f batch-byte-compile $<
55
56 tm-mh-e.elc:    tm-mh-e.el
57         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -l mh-e \
58                 -f batch-byte-compile $<
59
60 $(TMVELC):
61         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -l tm-view \
62                 -f batch-byte-compile $<
63
64 install:        all tl-install tm-install
65
66 tl-install:
67         -chmod +w $(TLDIR)/*.el
68         cp -p tl-*.el signature.el $(TLDIR)
69         mv tl-*.elc signature.elc $(TLDIR)
70
71 tm-install:
72         -chmod +w $(TMDIR)/*.el
73         cp -p tiny-mime.el tm-*.el mime-setup.el \
74                 gnushook.el sc-setup.el $(TMDIR)
75         mv tiny-mime.elc tm-*.elc $(TMDIR)
76
77 clean:
78         -rm *.elc