tm 5.13
[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 \
9         doc/Makefile doc/*.pln doc/*.ol doc/*.tex
10
11 TARFILE = tm5.13.tar
12
13 all:    $(UTILS) $(DVI)
14
15 ol2:    ol2.c
16         $(CC) $(CFLAGS) ol2.c -o ol2
17
18 decode-b:       decode-b.c
19         $(CC) $(CFLAGS) decode-b.c -o decode-b
20
21
22 tex:    ol2
23         (cd doc; make tex)
24
25 dvi:    ol2
26         (cd doc; make dvi)
27
28 ps:     ol2
29         (cd doc; make ps)
30
31
32 install:        $(UTILS) methods
33         cp -p $(UTILS) $(bindir)
34         cp -p methods/* $(bindir)
35
36
37 clean:
38         rm $(GOMI)
39         (cd doc; make clean)
40
41
42 tar:    $(FILES)
43         (cd doc; make tex)
44         tar cvf $(TARFILE) $(FILES)
45         gzip -9 $(TARFILE)