source: trunk/athena/bin/ispell/Makefile @ 409

Revision 409, 1.9 KB checked in by treese, 37 years ago (diff)
Fixed up installation. Added DESTDIR offset.
Line 
1# -*- Mode: Text -*-
2
3# Look over config.X before building.
4#
5# You may want to edit BINDIR, LIBDIR, DEFHASH, DEFDICT, MANDIR, and
6# MANEXT below; the Makefile will update all other files to match.
7#
8# On USG systems, add -DUSG to CFLAGS.
9#
10# The ifdef NO8BIT may be used if 8 bit extended text characters
11# cause problems, or you simply don't wish to allow the feature.
12#
13# the argument syntax for buildhash to make alternate dictionary files
14# is simply:
15#
16#   buildhash <infile> <outfile>
17
18DESTDIR=
19CFLAGS = -O
20# BINDIR, LIBDIR, DEFHASH, DEFDICT, MANDIR, MANEXT
21BINDIR = ${DESTDIR}/usr/athena
22LIBDIR = ${DESTDIR}/usr/athena/lib/ispell
23DEFHASH = ispell.hash
24DEFDICT = dict.191
25MANDIR  = ${DESTDIR}/usr/man/man1
26MANEXT  = .1
27SHELL = /bin/sh
28
29TERMLIB = -ltermcap
30
31all: buildhash ispell icombine munchlist $(DEFHASH)
32
33ispell.hash: buildhash $(DEFDICT)
34        ./buildhash $(DEFDICT) $(DEFHASH)
35
36install: all
37        -mkdir ${BINDIR}
38        -mkdir ${LIBDIR}
39        install -m 755 -s ispell $(BINDIR)/ispell
40        install -m 755 -s icombine $(LIBDIR)/icombine
41        install -m 755 munchlist $(BINDIR)/munchlist
42        install -m 644 ispell.hash $(LIBDIR)/$(DEFHASH)
43        install -m 644 expand1.sed $(LIBDIR)/expand1.sed
44        install -m 644 expand2.sed $(LIBDIR)/expand2.sed
45        install -m 644 ispell.1 $(MANDIR)/ispell.1
46
47buildhash: buildhash.o hash.o
48        $(CC) $(CFLAGS) -o buildhash buildhash.o hash.o
49
50icombine:       icombine.c
51        $(CC) $(CFLAGS) -o icombine icombine.c
52
53munchlist:      munchlist.X Makefile
54        sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
55                <munchlist.X >munchlist
56        chmod +x munchlist
57
58OBJS=ispell.o term.o good.o lookup.o hash.o tree.o
59ispell: $(OBJS)
60        cc $(CFLAGS) -o ispell $(OBJS) $(TERMLIB)
61
62$(OBJS) buildhash.o: config.h
63
64config.h:       config.X Makefile
65        sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
66            -e 's@!!DEFHASH!!@$(DEFHASH)@' <config.X >config.h
67
68clean:
69        rm -f *.o buildhash ispell core a.out mon.out hash.out \
70                *.stat *.cnt munchlist config.h icombine
Note: See TracBrowser for help on using the repository browser.