Bill Jolitz @ Berkeley received this version from Lorindia Cherry
[unix-history] / usr / src / usr.bin / diction / Makefile
CommitLineData
2958d0fe 1#
280efb10 2# @(#)Makefile 4.2 (Berkeley) 82/11/06
2958d0fe
RH
3#
4# make file for STYLE and DICTION
5#
6# BIN is the directory for storing the object code
7# for the 3 programs that make up style
8# DICT is the full pathname of the file dict.d, the
9# dictionary file used by DICTION
10#
11BIN = ${DESTDIR}/usr/lib
12DICT= -DDICT=\"/usr/lib/dict.d\"
13
280efb10 14all: diction style suggest deroff
2958d0fe
RH
15style: style1 style2 style3
16
17install: style diction
18 install -s style1 ${DESTDIR}/usr/lib
19 install -s style2 ${DESTDIR}/usr/lib
20 install -s style3 ${DESTDIR}/usr/lib
21 install -s dprog ${DESTDIR}/usr/lib
22 install -s deroff ${DESTDIR}/usr/lib
23 rm -f ${DESTDIR}/usr/bin/deroff
24 ln ${DESTDIR}/usr/lib/deroff ${DESTDIR}/usr/bin/deroff
25 install -c style ${DESTDIR}/usr/bin
26 install -c diction ${DESTDIR}/usr/bin
27 install -c explain ${DESTDIR}/usr/bin
28 install -c dict.d ${DESTDIR}/usr/lib
29 install -c explain.d ${DESTDIR}/usr/lib
280efb10
RH
30# ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest
31# ln ${DESTDIR}/usr/lib/explain.d ${DESTDIR}/usr/bin/suggest.d
2958d0fe
RH
32
33clean:
34 rm -f prtlex.c wdslex.c endlex.c
35 rm -f *.o style1 style2 style3 dprog
36
37style3: prtlex.o pscan.o outp.o
38 cc prtlex.o pscan.o outp.o -ll -o style3
39prtlex.c: part.l
40 lex part.l
41 mv lex.yy.c prtlex.c
42prtlex.o: names.h prtlex.c
43 cc -c -O prtlex.c
44pscan.o: names.h conp.h
45 cc -c -O pscan.c
46outp.o: names.h conp.h style.h
47 cc -c -O outp.c
48
49style1: wdslex.o
50 cc wdslex.o -ll -o style1
280efb10 51wdslex.o: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c
2958d0fe
RH
52 cc -c wdslex.c
53wdslex.c: nwords.l
54 lex nwords.l
55 mv lex.yy.c wdslex.c
56
57style2: endlex.o
58 cc endlex.o -ll -o style2
59endlex.o: names.h endlex.c ehash.c edict.c
60 cc -c endlex.c
61endlex.c: end.l
62 lex end.l
63 mv lex.yy.c endlex.c
64
65diction: dprog
66dprog: diction.c
67 cc -O $(DICT) diction.c -i -o dprog
68
280efb10
RH
69deroff: deroff.c getopt.c
70 cc -O deroff.c getopt.c -i -o deroff