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