tm 5.9
[elisp/tm.git] / Makefile
1 bindir  = $(HOME)/bin
2 CC      = gcc
3 CFLAGS  = -O
4
5 UTILS   = ol2 decode-b
6 METHODS = tm-au tm-file tm-image tm-latex tm-mpeg
7 GOMI    = $(UTILS)
8 FILES   = README.eng Makefile *.el *.c methods doc
9
10 TARFILE = tm5.9.tar
11
12 all:    $(UTILS) $(DVI)
13
14 ol2:    ol2.c
15         $(CC) $(CFLAGS) ol2.c -o ol2
16
17 decode-b:       decode-b.c
18         $(CC) $(CFLAGS) decode-b.c -o decode-b
19
20
21 tex:    ol2
22         (cd doc; make tex)
23
24 dvi:    ol2
25         (cd doc; make dvi)
26
27 ps:     ol2
28         (cd doc; make ps)
29
30
31 install:        $(UTILS) methods
32         cp -p $(UTILS) $(bindir)
33         cp -p methods/* $(bindir)
34
35
36 clean:
37         rm $(GOMI)
38         (cd doc; make clean)
39
40
41 tar:    $(FILES)
42         (cd doc; make tex)
43         tar cvf $(TARFILE) $(FILES)
44         gzip -9 $(TARFILE)