# @(#)Makefile 8.1 (Berkeley) %G%
SRCS
= spell.c spellin.c spellout.c
MLINKS
= spell
.1 spellin
.1 spell
.1 spellout
.1
SPECIAL
=${.CURDIR
}/special
.4bsd
all: spell hlist hlista hlistb hstop spellin spellout
${MAN1}
spell spellin spellout
: ${LIBC}
${CC} ${CFLAGS} ${.CURDIR
}/${.PREFIX
}.c
-o
${.TARGET
}
spellin
< /usr
/share
/dict
/words > hlist
hlista
: american
${SPECIAL} hlist spellin
(cat
${.CURDIR
}/american
${SPECIAL}) | spellin hlist
> hlista
hlistb
: british
${SPECIAL} hlist spellin
(cat
${.CURDIR
}/british
${SPECIAL}) | spellin hlist
> hlistb
spellin
< ${.CURDIR
}/stop
> hstop
rm -f a.out Errs errs mklog core spell spellin hlista \
hlistb hlist hstop spellout
rm -f
${MAN1} ${.CURDIR
}/tags .depend
mkdep
-p
${CFLAGS
:M-
[ID
]*} ${.ALLSRC
}
DIR
= ${DESTDIR}/usr
/share
/dict
FILES
= ${.CURDIR
}/american
${.CURDIR
}/british hlist hlista hlistb hstop \
install ${STRIP} -o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
spellin spellout
${DESTDIR}/usr
/bin
install ${STRIP} -o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
spell
${DESTDIR}/usr
/libexec
install -c
-o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
${.CURDIR
}/spell.sh
${DESTDIR}/usr
/bin
/spell
install -c
-o
${BINOWN} -g
${BINGRP} -m
444 ${FILES} ${DIR}
install -c
-o
${BINOWN} -g
${BINGRP} -m
444 ${.CURDIR
}/special
.4bsd \
install -c
-o
${BINOWN} -g
${BINGRP} -m
444 ${.CURDIR
}/special.math \
cd
${.CURDIR
}; ${LINT} ${LINTFLAGS} ${CFLAGS} spell.c
cd
${.CURDIR
}; ${LINT} ${LINTFLAGS} ${CFLAGS} spellin.c
cd
${.CURDIR
}; ${LINT} ${LINTFLAGS} ${CFLAGS} spellout.c
cd
${.CURDIR
}; ctags
${SRCS}