35af1165a350cd60d16fcfa604eaf27fe54d14ef
[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         
17
18 .SUFFIXES:      .el .elc
19
20 .el.elc:
21         $(EMACS) -batch -q . -f batch-byte-compile $<
22
23 all:    $(TLELC) tl-nemacs.elc tl-mule.elc \
24         tiny-mime.elc $(TMELC) tm-nemacs.elc tm-mule.elc $(TMMELC) \
25         tm-mh-e.elc tm-gnus.elc $(TMVELC)
26
27 $(TLELC):       $(TLEL)
28
29 tl-nemacs.elc:  tl-nemacs.el
30
31 tl-mule.elc:    tl-mule.el
32
33 tiny-mime.elc:  tiny-mime.el
34
35 $(TMELC):
36         $(EMACS) -batch -q . -l tiny-mime -f batch-byte-compile $<
37
38 tm-nemacs.elc:  tm-nemacs.el
39         $(NEMACS) -batch -q . -l tiny-mime -f batch-byte-compile $<
40
41 tm-mule.elc:    tm-mule.el
42         $(MULE) -batch -q . -f batch-byte-compile $<
43
44 $(TMMELC):
45         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -f batch-byte-compile $<
46
47 tm-gnus.elc:    tm-gnus.el
48         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -l gnus \
49                 -f batch-byte-compile $<
50
51 tm-mh-e.elc:    tm-mh-e.el
52         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -l mh-e \
53                 -f batch-byte-compile $<
54
55 $(TMVELC):
56         $(EMACS) -batch -q . -l tiny-mime -l tm-misc -l tm-view \
57                 -f batch-byte-compile $<
58
59 install:        all tl-install tm-install
60
61 tl-install:
62         -chmod +w $(TLDIR)/*.el
63         cp -p tl-*.el signature.el $(TLDIR)
64         mv tl-*.elc signature.elc $(TLDIR)
65
66 tm-install:
67         -chmod +w $(TMDIR)/*.el
68         cp -p tiny-mime.el tm-*.el mime-setup.el \
69                 gnushook.el sc-setup.el $(TMDIR)
70         mv tiny-mime.elc tm-*.elc $(TMDIR)
71
72 clean:
73         -rm *.elc