source: trunk/athena/bin/ispell/Imakefile @ 5066

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