Commit | Line | Data |
---|---|---|
eb58aadd | 1 | # @(#)Makefile 4.3 %G% |
e70c8975 BS |
2 | |
3 | CFLAGS= -O | |
3547fd7c SL |
4 | |
5 | all: spell hlist hlista hlistb hstop spellin spellout | |
6 | ||
7 | install: all | |
8 | install -s spell $(DESTDIR)/usr/lib | |
9 | install -s spellin ${DESTDIR}/usr/bin | |
10 | install -s spellout ${DESTDIR}/usr/bin | |
11 | install -c hlista $(DESTDIR)/usr/dict | |
12 | install -c hlistb $(DESTDIR)/usr/dict | |
13 | install -c hstop $(DESTDIR)/usr/dict | |
14 | install -c spell.sh $(DESTDIR)/usr/bin/spell | |
15 | ||
16 | clean: | |
eb58aadd | 17 | rm -f *.o spell spellin hlista hlistb hlist hstop spellout |
3547fd7c | 18 | |
e70c8975 BS |
19 | spell: spell.o |
20 | cc spell.o -o spell | |
21 | spellin: spellin.o | |
22 | cc spellin.o -o spellin | |
23 | spellout: spellout.o | |
24 | cc spellout.o -o spellout | |
3547fd7c SL |
25 | |
26 | hlist: /usr/dict/words spellin | |
27 | spellin </usr/dict/words >hlist | |
28 | hlista: american local hlist spellin | |
29 | (cat american local)|spellin hlist >hlista | |
30 | hlistb: british local hlist spellin | |
31 | (cat british local)|spellin hlist >hlistb | |
32 | hstop: stop spellin | |
33 | spellin <stop >hstop |