tm 7.80.
[elisp/tm.git] / Makefile.19
1 #
2 # $Id: Makefile.19,v 1.1 1994/12/27 02:32:05 morioka Exp $
3 #
4
5 # Please specify emacs executables:
6 #       EMACS = for all kind of Emacs 19 (FSF original, MULE or XEmacs)
7 #       ORIG  = for FSF original Emacs 19 or XEmacs
8 #       MULE  = for MULE 2
9 #
10 # If you have only one kind of Emacs 19, please dummy specify, like that:
11 #
12 # for Emacs 19 only: (If executable name = `emacs19')
13 #       EMACS   = emacs19
14 #       ORIG    = emacs19
15 #       MULE    = emacs19
16 #
17 # for MULE 2 only: (If executable name = `mule2')
18 #       EMACS   = mule2
19 #       ORIG    = mule2
20 #       MULE    = mule2
21 #
22 # for XEmacs only: (If executable name = `xemacs')
23 #       EMACS   = xemacs
24 #       ORIG    = xemacs
25 #       MULE    = xemacs
26 #
27 # for every kind of Emacs:
28         EMACS   = mule2
29         ORIG    = emacs19
30         MULE    = mule2
31
32 # Please specfy Emacs Lisp install directory:
33 #       TLDIR = for tl modules
34 #       TMDIR = for tm modules
35 #
36 # TLDIR = $(HOME)/lib/emacs19/lisp
37 # TMDIR = $(HOME)/lib/emacs19/lisp/tm
38 TLDIR   = /usr/local/lib/mule/site-lisp
39 TMDIR   = /usr/local/lib/mule/site-lisp
40
41 TLEL    = tl-header.el tl-str.el
42 TLELC   = ${TLEL:el=elc}
43 TMEL    = tm-misc.el
44 TMELC   = ${TMEL:el=elc}
45 TMMEL   = tm-view.el tm-rmail.el tm-comp.el tm-gnus4.el
46 TMMELC  = ${TMMEL:el=elc}
47 TMVEL   = tm-rich.el
48 TMVELC  = ${TMVEL:el=elc}
49
50
51 .SUFFIXES:      .el .elc
52
53 .el.elc:
54         $(EMACS) -batch -q . -f batch-byte-compile $<
55
56 all:    $(TLELC) tl-orig.elc tl-mule.elc tl-list.elc signature.elc \
57         tiny-mime.elc $(TMELC) tm-orig.elc tm-mule.elc $(TMMELC) \
58         tm-mh-e.elc tm-gnus.elc $(TMVELC)
59
60 $(TLELC):       $(TLEL)
61
62 tl-orig.elc:    tl-orig.el
63         $(ORIG) -batch -q . -f batch-byte-compile $<
64
65 tl-mule.elc:    tl-mule.el
66         $(MULE) -batch -q . -f batch-byte-compile $<
67
68 tl-list.elc:    tl-list.el
69         $(EMACS) -batch -q . -l tl-str.el -l tl-list.el -f batch-byte-compile $<
70
71 signature.elc:  signature.el
72         $(EMACS) -batch -q . -l tl-header.el -f batch-byte-compile $<
73
74 tiny-mime.elc:  tiny-mime.el
75         $(EMACS) -batch -q . -l tl-header.el -l tl-str.el -f batch-byte-compile $<
76
77 $(TMELC):
78         $(EMACS) -batch -q . -l tl-str.el -l tl-list.el -l tl-mule.el -l tm-mule.el -l tl-header.el -l tiny-mime.el -f batch-byte-compile $<
79
80 tm-orig.elc:    tm-orig.el
81         $(ORIG) -batch -q . -l tl-orig.el -f batch-byte-compile $<
82
83 tm-mule.elc:    tm-mule.el
84         $(MULE) -batch -q . -l tl-str.el -l tl-list.el -l tl-mule.el -f batch-byte-compile $<
85
86 $(TMMELC):
87         $(EMACS) -batch -q . -l tl-str.el -l tl-list.el -l tl-mule.el -l tl-header.el -l tm-mule.el -l tiny-mime.el -l tm-misc.el \
88                 -f batch-byte-compile $<
89
90 tm-gnus.elc:    tm-gnus.el
91         $(EMACS) -batch -q . -l tl-str.el -l tl-list.el -l tl-header.el -l tl-mule.el -l tm-mule.el -l tiny-mime.el -l tm-misc.el -l gnus \
92                 -f batch-byte-compile $<
93
94 tm-mh-e.elc:    tm-mh-e.el
95         $(EMACS) -batch -q . -l tl-str.el -l tl-list.el -l tl-header.el -l tl-mule.el -l tm-mule.el -l tiny-mime.el -l tm-misc.el -l mh-e \
96                 -f batch-byte-compile $<
97
98 $(TMVELC):
99         $(EMACS) -batch -q . -l tl-str.el -l tl-list.el -l tl-header.el -l tl-mule.el -l tm-mule.el -l tiny-mime.el -l tm-misc.el -l tm-view.el \
100                 -f batch-byte-compile $<
101
102 install:        all tl-install tm-install
103
104 tl-install:
105         -chmod +w $(TLDIR)/*.el
106         cp -p tl-*.el signature.el $(TLDIR)
107         mv tl-*.elc signature.elc $(TLDIR)
108
109 tm-install:
110         -chmod +w $(TMDIR)/*.el
111         cp -p tiny-mime.el tm-*.el mime-setup.el \
112                 gnushook.el sc-setup.el $(TMDIR)
113         mv tiny-mime.elc tm-*.elc $(TMDIR)
114
115 clean:
116         -rm *.elc