new template
[unix-history] / usr / src / usr.bin / spell / Makefile
CommitLineData
120e0954
KB
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 4.8 (Berkeley) %G%
7#
edfd41ca 8# The word lists may be extended by adding special words.
15cdd3b3 9# The set of files containing words to be added are defined
120e0954
KB
10# by SPECIAL below. By default we add commands and library
11# function names defined in /usr/man/man[1238n]. The word
12# lists also may be extended by adding local words. The set
edfd41ca 13# of files containing words to be added are defined by LOCAL
120e0954
KB
14# below. Typically these lists reside in /usr/local/dict.
15
16SPECIAL= special.4bsd
17
18CFLAGS= -O
19LIBC= /lib/libc.a
20SRCS= spell.c spellin.c spellout.c
21OBJS= spell.o spellin.o spellout.o
22
23all: spell hlist hlista hlistb hstop spellin spellout
24
25spell: spell.c
26 ${CC} ${CFLAGS} spell.c -o $@
27
28spellin: spellin.c
29 ${CC} ${CFLAGS} spellin.c -o $@
30
31spellout: spellout.c
32 ${CC} ${CFLAGS} spellout.c -o $@
3547fd7c
SL
33
34hlist: /usr/dict/words spellin
120e0954
KB
35 spellin < words >hlist
36
37hlista: american ${SPECIAL} ${LOCAL} hlist spellin
38 (cat american ${SPECIAL} ${LOCAL}) | spellin hlist > hlista
39
40hlistb: british ${SPECIAL} ${LOCAL} hlist spellin
41 (cat british ${SPECIAL} ${LOCAL}) | spellin hlist > hlistb
42
3547fd7c 43hstop: stop spellin
120e0954
KB
44 spellin < stop >hstop
45
46clean: FRC
47 rm -f ${OBJS} core spell spellin hlista hlistb hlist hstop spellout
48
49depend: FRC
50 mkdep -p ${CFLAGS} ${SRCS}
51
52install: FRC
53 -mkdir ${DESTDIR}/usr/dict/special > /dev/null 2>&1
54 install -s -o bin -g bin -m 755 spell ${DESTDIR}/usr/lib/spell
55 install -s -o bin -g bin -m 755 spellin ${DESTDIR}/usr/bin/spellin
56 install -s -o bin -g bin -m 755 spellout ${DESTDIR}/usr/bin/spellout
57 install -c -o bin -g bin -m 755 spell.sh ${DESTDIR}/usr/bin/spell
58 install -o bin -g bin -m 444 hlista ${DESTDIR}/usr/dict/hlista
59 install -o bin -g bin -m 444 hlistb ${DESTDIR}/usr/dict/hlistb
60 install -o bin -g bin -m 444 hstop ${DESTDIR}/usr/dict/hstop
61 install -o bin -g bin -m 444 hlist ${DESTDIR}/usr/dict/hlist
62 install -c -o bin -g bin -m 444 words ${DESTDIR}/usr/dict/words
63 install -c -o bin -g bin -m 444 american ${DESTDIR}/usr/dict/american
64 install -c -o bin -g bin -m 444 british ${DESTDIR}/usr/dict/british
65 install -c -o bin -g bin -m 444 stop ${DESTDIR}/usr/dict/stop
66 install -c -o bin -g bin -m 444 README ${DESTDIR}/usr/dict/README
67 install -c -o bin -g bin -m 444 special.4bsd ${DESTDIR}/usr/dict/special/4bsd
68 install -c -o bin -g bin -m 444 special.math ${DESTDIR}/usr/dict/special/math
69
70lint: FRC
71 lint ${CFLAGS} spell.c
72 lint ${CFLAGS} spellin.c
73 lint ${CFLAGS} spellout.c
74
75tags: FRC
76 ctags spell.c
77 ctags -a spellin.c
78 ctags -a spellout.c
79 sort -o tags tags
80
81FRC:
82
83# DO NOT DELETE THIS LINE -- mkdep uses it.
84# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
85
86spell: spell.c spell.h /usr/include/stdio.h /usr/include/ctype.h
87spellin: spellin.c spell.h /usr/include/stdio.h /usr/include/ctype.h
88spellout: spellout.c spell.h /usr/include/stdio.h /usr/include/ctype.h
a8629c9c 89
120e0954 90# IF YOU PUT ANYTHING HERE IT WILL GO AWAY