- spellin < stop >hstop
-
-clean: FRC
- rm -f ${OBJS} core spell spellin hlista hlistb hlist hstop spellout
-
-depend: FRC
- mkdep -p ${CFLAGS} ${SRCS}
-
-install: FRC
- -[ -d ${DESTDIR}/usr/dict/special ] || mkdir ${DESTDIR}/usr/dict/special
- install -s -o bin -g bin -m 755 spell ${DESTDIR}/usr/lib/spell
- install -s -o bin -g bin -m 755 spellin ${DESTDIR}/usr/bin/spellin
- install -s -o bin -g bin -m 755 spellout ${DESTDIR}/usr/bin/spellout
- install -c -o bin -g bin -m 755 spell.sh ${DESTDIR}/usr/bin/spell
- install -o bin -g bin -m 444 hlista ${DESTDIR}/usr/dict/hlista
- install -o bin -g bin -m 444 hlistb ${DESTDIR}/usr/dict/hlistb
- install -o bin -g bin -m 444 hstop ${DESTDIR}/usr/dict/hstop
- install -o bin -g bin -m 444 hlist ${DESTDIR}/usr/dict/hlist
- install -c -o bin -g bin -m 444 words ${DESTDIR}/usr/dict/words
- install -c -o bin -g bin -m 444 american ${DESTDIR}/usr/dict/american
- install -c -o bin -g bin -m 444 british ${DESTDIR}/usr/dict/british
- install -c -o bin -g bin -m 444 stop ${DESTDIR}/usr/dict/stop
- install -c -o bin -g bin -m 444 README ${DESTDIR}/usr/dict/README
- install -c -o bin -g bin -m 444 special.4bsd ${DESTDIR}/usr/dict/special/4bsd
- install -c -o bin -g bin -m 444 special.math ${DESTDIR}/usr/dict/special/math
-
-lint: FRC
- lint ${CFLAGS} spell.c
- lint ${CFLAGS} spellin.c
- lint ${CFLAGS} spellout.c
-
-tags: FRC
- ctags spell.c
- ctags -a spellin.c
- ctags -a spellout.c
- sort -o tags tags
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-spell: spell.c spell.h /usr/include/stdio.h /usr/include/ctype.h
-spellin: spellin.c spell.h /usr/include/stdio.h /usr/include/ctype.h
-spellout: spellout.c spell.h /usr/include/stdio.h /usr/include/ctype.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
+ spellin < ${.CURDIR}/stop > hstop
+
+clean:
+ rm -f a.out Errs errs mklog core spell spellin hlista \
+ hlistb hlist hstop spellout
+
+cleandir: clean
+ rm -f ${MAN1} ${.CURDIR}/tags .depend
+
+depend: ${SRCS}
+ mkdep -p ${CFLAGS:M-[ID]*} ${.ALLSRC}
+
+DIR= ${DESTDIR}/usr/share/dict
+FILES= hlist hlista hlistb hstop
+
+install: maninstall
+ 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 \
+ ${DIR}/special/4bsd
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/special.math \
+ ${DIR}/special/math
+
+lint: ${SRCS}
+ cd ${.CURDIR}; ${LINT} ${LINTFLAGS} ${CFLAGS} spell.c
+ cd ${.CURDIR}; ${LINT} ${LINTFLAGS} ${CFLAGS} spellin.c
+ cd ${.CURDIR}; ${LINT} ${LINTFLAGS} ${CFLAGS} spellout.c
+
+tags: ${SRCS}
+ cd ${.CURDIR}; ctags ${SRCS}
+
+.include <bsd.prog.mk>