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 | |
---|
20 | LIBDIR = /usr/athena/lib/ispell |
---|
21 | DEFHASH = ispell.hash |
---|
22 | DEFDICT = dict.191 |
---|
23 | MANDIR = ${DESTDIR}/usr/man/man1 |
---|
24 | SHELL = /bin/sh |
---|
25 | |
---|
26 | TERMLIB = -ltermcap |
---|
27 | |
---|
28 | all:: ispell.hash munchlist |
---|
29 | |
---|
30 | OBJS=ispell.o term.o good.o lookup.o hash.o tree.o |
---|
31 | SRCS=ispell.c term.c good.c lookup.c hash.c tree.c |
---|
32 | |
---|
33 | build_program(buildhash,buildhash.o hash.o,,) |
---|
34 | SimpleProgram(icombine,icombine.c,,$(ATHBINDIR)) |
---|
35 | SimpleProgram(ispell,$(OBJS),$(TERMLIB),$(ATHBINDIR)) |
---|
36 | |
---|
37 | ispell.hash: buildhash $(DEFDICT) |
---|
38 | ./buildhash $(DEFDICT) $(DEFHASH) |
---|
39 | |
---|
40 | /* install */ |
---|
41 | create_dir($(ATHBINDIR)) |
---|
42 | create_dir($(LIBDIR)) |
---|
43 | |
---|
44 | install_file(ispell.hash,$(LIBDIR)/$(DEFHASH)) |
---|
45 | install_file(expand1.sed,$(LIBDIR)) |
---|
46 | install_file(expand2.sed,$(LIBDIR)) |
---|
47 | install_man(ispell.1,ispell.1) |
---|
48 | |
---|
49 | install:: |
---|
50 | $(INSTALL) -m 755 munchlist $(DESTDIR)$(ATHBINDIR)/munchlist |
---|
51 | |
---|
52 | munchlist: 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 | |
---|
60 | config.h: config.X Makefile |
---|
61 | sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \ |
---|
62 | -e 's@!!DEFHASH!!@$(DEFHASH)@' <config.X >config.h |
---|
63 | |
---|
64 | clean:: |
---|
65 | $(RM) hash.out *.stat *.cnt munchlist config.h ispell.hash |
---|
66 | |
---|
67 | #if 0 |
---|
68 | depend: |
---|
69 | makedepend ${CFLAGS} ${SRCS} |
---|
70 | #endif |
---|
71 | |
---|