# @(#)Makefile 4.7 (Berkeley) 87/06/18
# make file for STYLE and DICTION
# BIN is the directory for storing the object code
# for the 3 programs that make up style
# DICT is the full pathname of the file dict.d, the
# dictionary file used by DICTION
abbrev.c conp.h dict.c dict.d \
diction.c diction.sh edict.c ehash.c \
end.l getopt.c names.h nhash.c \
nwords.l outp.c part.l pscan.c \
style.h style.sh explain.sh ydict.c \
DICT
= -DDICT
=\"/usr
/lib
/dict.d
\"
style
: style1 style2 style3
install: style diction style.sh diction.sh explain.sh dict.d explain.d
install -s style1
${DESTDIR}/usr
/lib
install -s style2
${DESTDIR}/usr
/lib
install -s style3
${DESTDIR}/usr
/lib
install -s dprog
${DESTDIR}/usr
/lib
install -c style.sh
${DESTDIR}/usr
/bin
/style
install -c diction.sh
${DESTDIR}/usr
/bin
/diction
install -c explain.sh
${DESTDIR}/usr
/bin
/explain
install -c dict.d
${DESTDIR}/usr
/lib
install -c explain.d
${DESTDIR}/usr
/lib
# ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest
rm -f prtlex.c wdslex.c endlex.c
rm -f
*.o style1 style2 style3 dprog
style3
: prtlex.o pscan.o outp.o
cc prtlex.o pscan.o outp.o
-ll
-o style3
prtlex.o
: names.h prtlex.c conp.h style.h names.h
pscan.o
: names.h conp.h pscan.c
outp.o
: names.h conp.h style.h outp.c
cc wdslex.o
-ll
-o style1
wdslex.o
: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c
cc endlex.o
-ll
-o style2
endlex.o
: names.h endlex.c ehash.c edict.c
cc -O
$(DICT
) diction.c
-o dprog